treewide: replace remaining (not working now) $SAVE_CONFIG uses
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / dir825.sh
index 7ad3dd8e1faa866ebbfd378145527716df1c26be..f77350303238b58ccd239c7a4bd647bff012579f 100644 (file)
@@ -75,7 +75,7 @@ dir825b_do_upgrade_combined() {
 
        if [ -n "$fw_mtd" ] &&  [ ${fw_blocks:-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"
 
                sync
                dd if="$fw_file" bs=64k skip=1 count=$fw_blocks 2>/dev/null | \