treewide: sysupgrade: pass "save_partitions" option to the "sysupgrade" method
[openwrt/openwrt.git] / target / linux / brcm2708 / base-files / lib / upgrade / platform.sh
index 37e479272bf8e10bb139ff2de87e96c015b22896..693cde777950d70f8c8f9588061db7e15b93b0d6 100644 (file)
@@ -45,7 +45,7 @@ platform_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