treewide: when copying a backup file always specify dest name
[openwrt/openwrt.git] / target / linux / mvebu / base-files / lib / upgrade / sdcard.sh
index 3bfdce97e8d9bc531dcdee02852e48995dafcd53..03f63276572829d6f83fddabfdbd58e5942266b1 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/
+               cp -af "$CONF_TAR" "/boot/$BACKUP_FILE"
                sync
                umount /boot
        fi