From 59cc6faf558ffb200b578eeaf79eb3d91e80d5bb Mon Sep 17 00:00:00 2001 From: Vincent-FK Date: Mon, 5 Apr 2021 10:26:25 +0200 Subject: [PATCH] First boot creates "Native games" and "Applications" and copy correctly emulators because they are also missing --- .../funkey/rootfs-overlay/usr/local/sbin/first_boot | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot index 03b022a..b121a54 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/first_boot @@ -201,11 +201,16 @@ copy_files_to_usb_partition () { if [ $? -ne 0 ]; then mount /mnt/ || die_notif 16 "Cannot mount /mnt" fi + + # Copy freware games unzip -q -o /usr/local/share/mnt_freware_games.zip -d /mnt/ - mkdir -p /mnt/Emulators + + # Copy OPKs set +f - cp -f /usr/games/opk/*.opk /mnt/Emulators/ + cp -r /usr/local/share/OPKs/* /mnt set -f + + # Unmount USB partition umount /mnt/ || die_notif 17 "Cannot unmount /mnt" return 0 }