treewide: when copying a backup file always specify dest name
[openwrt/openwrt.git] / target / linux / imx6 / base-files / lib / upgrade / platform.sh
index 07b568d9b4dba091e329da21ffa0a3577c05e9b1..c287efa0b3bd0acb7fcdd4827086125b1c67322b 100755 (executable)
@@ -17,7 +17,7 @@ enable_image_metadata_check
 
 apalis_copy_config() {
        apalis_mount_boot
-       cp -af "$CONF_TAR" /boot/
+       cp -af "$CONF_TAR" "/boot/$BACKUP_FILE"
        sync
        umount /boot
 }