treewide: sysupgrade: use $UPGRADE_BACKUP to check for backup
[openwrt/staging/chunkeey.git] / target / linux / ixp4xx / base-files / lib / upgrade / platform.sh
index 557f43ce6fb30530f6245e7a9e9da81c04646b3b..f83aa430cf94c7fa728fd52b536f0d9673c7032f 100644 (file)
@@ -68,7 +68,7 @@ platform_do_upgrade_combined() {
           [ ${erase_size:-0} -gt 0 ];
        then
                local append=""
-               [ -f "$UPGRADE_BACKUP" -a "$UPGRADE_OPT_SAVE_CONFIG" -eq 1 ] && append="-j $UPGRADE_BACKUP"
+               [ -f "$UPGRADE_BACKUP" ] && append="-j $UPGRADE_BACKUP"
 
                # write the kernel
                dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null | \