treewide: replace remaining (not working now) $SAVE_CONFIG uses
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / upgrade / openmesh.sh
index 65c624d86cf9d36790b73c354ea0392d10e086a6..88759318c3e31513e7f67ede9fd467229005e1cf 100644 (file)
@@ -159,7 +159,7 @@ platform_do_upgrade_openmesh()
        local cfg_size= kernel_size= rootfs_size=
        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"
 
        cfg_size=$(dd if="$img_path" bs=2 skip=35 count=4 2>/dev/null)
        kernel_size=$(dd if="$img_path" bs=2 skip=71 count=4 2>/dev/null)