treewide: replace remaining (not working now) $SAVE_CONFIG uses
[openwrt/openwrt.git] / target / linux / ath25 / base-files / lib / upgrade / platform.sh
index d44b8fad80962d08c60193aa4c9f788cf0369426..65ac612ac4490e6b1989c5c1a429d3448f93ec1b 100644 (file)
@@ -67,7 +67,7 @@ platform_do_upgrade() {
           [ ${erase_size:-0} -gt 0 ];
        then
                local append=""
-               [ -f "$CONF_TAR" -a "$SAVE_CONFIG" -eq 1 ] && append="-j $CONF_TAR"
+               [ -f "$CONF_TAR" -a "$UPGRADE_OPT_UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $CONF_TAR"
 
                ( dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null; \
                  dd if="$1" bs=$CI_BLKSZ skip=$((1+$kern_blocks)) count=$root_blocks 2>/dev/null ) | \