treewide: replace remaining (not working now) $SAVE_CONFIG uses
[openwrt/openwrt.git] / target / linux / ixp4xx / base-files / lib / upgrade / platform.sh
index 3ba591fb3c14f9fe0d4c4da39748ccd51e85490c..6072591e11a27069e19e4d96edc2038ac2ff582e 100644 (file)
@@ -68,7 +68,7 @@ platform_do_upgrade_combined() {
           [ ${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_SAVE_CONFIG" -eq 1 ] && append="-j $CONF_TAR"
 
                # write the kernel
                dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null | \