treewide: use new procd sysupgrade $UPGRADE_BACKUP variable
[openwrt/openwrt.git] / target / linux / ipq806x / base-files / lib / upgrade / zyxel.sh
index e9fb0ad3886211ac346939c44e8309009620f724..cece018b31da08bea4925891307f137c4b5a909e 100644 (file)
@@ -60,7 +60,7 @@ zyxel_do_flash() {
        mkdir /tmp/new_root
        mount -t ext4 $loopdev /tmp/new_root && {
                echo "Saving config to rootfs_data at position ${offset}."
-               cp -v "$CONF_TAR" "/tmp/new_root/$BACKUP_FILE"
+               cp -v "$UPGRADE_BACKUP" "/tmp/new_root/$BACKUP_FILE"
                umount /tmp/new_root
        }