mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-12 15:48:51 +01:00
/mnt/Emulators now default folder to reinstall opks
This commit is contained in:
parent
aa1d880800
commit
f95a8303de
@ -22,20 +22,21 @@ do_postinst()
|
||||
exit 1
|
||||
fi
|
||||
notif " 3/4 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
|
||||
if [ ! -d /mnt/apps ]; then
|
||||
mkdir -p /mnt/apps
|
||||
mkdir -p ${root_mount}
|
||||
mount -t ext4 ${root_part} ${root_mount}
|
||||
if [ $? -ne 0 ]; then
|
||||
notif "CANNOT MOUNT ROOT^FILESYSTEM"
|
||||
exit 1
|
||||
fi
|
||||
cp -f ${root_mount}/usr/games/opk/*.opk /mnt/apps/
|
||||
umount ${root_mount}
|
||||
if [ $? -ne 0 ]; then
|
||||
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
|
||||
exit 1
|
||||
fi
|
||||
folder_opks_emulators=/mnt/Emulators
|
||||
if [ ! -d "$folder_opks_emulators" ]; then
|
||||
mkdir -p "$folder_opks_emulators"
|
||||
mkdir -p ${root_mount}
|
||||
mount -t ext4 ${root_part} ${root_mount}
|
||||
if [ $? -ne 0 ]; then
|
||||
notif "CANNOT MOUNT ROOT^FILESYSTEM"
|
||||
exit 1
|
||||
fi
|
||||
cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
|
||||
umount ${root_mount}
|
||||
if [ $? -ne 0 ]; then
|
||||
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
for file in $(ls /mnt/FunKey-*.fwu); do
|
||||
notif " 4/4 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user