mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
First boot creates "Native games" and "Applications" and copy correctly emulators because they are also missing
This commit is contained in:
parent
78c6514bf5
commit
e079747a5c
@ -201,11 +201,16 @@ copy_files_to_usb_partition () {
|
|||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
mount /mnt/ || die_notif 16 "Cannot mount /mnt"
|
mount /mnt/ || die_notif 16 "Cannot mount /mnt"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Copy freware games
|
||||||
unzip -q -o /usr/local/share/mnt_freware_games.zip -d /mnt/
|
unzip -q -o /usr/local/share/mnt_freware_games.zip -d /mnt/
|
||||||
mkdir -p /mnt/Emulators
|
|
||||||
|
# Copy OPKs
|
||||||
set +f
|
set +f
|
||||||
cp -f /usr/games/opk/*.opk /mnt/Emulators/
|
cp -r /usr/local/share/OPKs/* /mnt
|
||||||
set -f
|
set -f
|
||||||
|
|
||||||
|
# Unmount USB partition
|
||||||
umount /mnt/ || die_notif 17 "Cannot unmount /mnt"
|
umount /mnt/ || die_notif 17 "Cannot unmount /mnt"
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user