treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
[openwrt/openwrt.git] / target / linux / ath25 / base-files / lib / upgrade / platform.sh
index f0b937df22dd8ebe57899bcdb00f2dc4a3791a71..0dde103605cd3fa7c9dc572c1e33ddaeda138a98 100644 (file)
@@ -67,7 +67,7 @@ platform_do_upgrade() {
           [ ${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"
 
                ( dd if="$1" bs=$CI_BLKSZ skip=1 count=$kern_blocks 2>/dev/null; \
                  dd if="$1" bs=$CI_BLKSZ skip=$((1+$kern_blocks)) count=$root_blocks 2>/dev/null ) | \