treewide: when copying a backup file always specify dest name
[openwrt/openwrt.git] / target / linux / imx6 / base-files / lib / upgrade / platform.sh
index 0ab2d984d3f7b867201979f976ac3850bfcba61e..28bdec9e9cd82ba41791ba9b656e5ce9872d000a 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
 }