Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Updated to not require /lib/modules #97

Closed
wants to merge 1 commit into from

2 participants

@szarpaj

This seems to work as expected. I suppose the SKIP_KERNEL check could be above rm -rf "${FW_MODPATH}.bak" in do_backup function.

@popcornmix popcornmix closed this
@popcornmix
Collaborator

Same scheme already committed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 1 deletion.
  1. +3 −1 rpi-update
View
4 rpi-update
@@ -139,7 +139,9 @@ function do_backup {
rm -rf "${FW_PATH}.bak"
cp -va "${FW_PATH}" "${FW_PATH}.bak"
rm -rf "${FW_MODPATH}.bak"
- cp -va "${FW_MODPATH}" "${FW_MODPATH}.bak"
+ if [[ ${SKIP_KERNEL} -eq 0 ]]; then
+ cp -va "${FW_MODPATH}" "${FW_MODPATH}.bak"
+ fi
}
function do_update {
Something went wrong with that request. Please try again.