treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
[openwrt/staging/stintel.git] / target / linux / apm821xx / base-files / lib / upgrade / wdbook.sh
index c1912711497d6df31bc1b05b016ec895bc12c335..01327d926a52586c0c8a21131be6877aae84cafa 100644 (file)
@@ -43,7 +43,7 @@ mbl_do_upgrade() {
 
        sync
 
-       if [ "$SAVE_PARTITIONS" = "1" ]; then
+       if [ "$UPGRADE_OPT_SAVE_PARTITIONS" = "1" ]; then
                get_partitions "/dev/$diskdev" bootdisk
 
                #extract the boot sector from the image