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