treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
[openwrt/staging/wigyori.git] / target / linux / ar71xx / base-files / lib / upgrade / openmesh.sh
index a6891dbbe71ec9d20fcb78b177409e81db0a4bf6..8536d4ba4af0b62a1f1de40cd85fbf3cd9f93c27 100644 (file)
@@ -159,7 +159,7 @@ platform_do_upgrade_openmesh()
        local cfg_size= kernel_size= rootfs_size=
        local append=""
 
-       [ -f "$CONF_TAR" -a "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $CONF_TAR"
+       [ -f "$UPGRADE_BACKUP" -a "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $UPGRADE_BACKUP"
 
        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)