treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / upgrade / sdcard.sh
index 03f63276572829d6f83fddabfdbd58e5942266b1..184803a50f1482617e5d244d7a9b251e7fc665c6 100644 (file)
@@ -106,7 +106,7 @@ platform_copy_config_sdcard() {
        if export_partdevice partdev 1; then
                mkdir -p /boot
                [ -f /boot/kernel.img ] || mount -o rw,noatime /dev/$partdev /boot
-               cp -af "$CONF_TAR" "/boot/$BACKUP_FILE"
+               cp -af "$UPGRADE_BACKUP" "/boot/$BACKUP_FILE"
                sync
                umount /boot
        fi