treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
[openwrt/openwrt.git] / target / linux / ixp4xx / base-files / lib / upgrade / platform.sh
index 6072591e11a27069e19e4d96edc2038ac2ff582e..557f43ce6fb30530f6245e7a9e9da81c04646b3b 100644 (file)
@@ -68,7 +68,7 @@ platform_do_upgrade_combined() {
           [ ${erase_size:-0} -gt 0 ];
        then
                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"
 
                # write the kernel
                dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null | \