/mnt/Emulators now default folder to reinstall opks

This commit is contained in:
Vincent-FK 2021-01-15 15:02:18 +01:00
parent aa1d880800
commit f95a8303de
1 changed files with 15 additions and 14 deletions

View File

@ -22,15 +22,16 @@ do_postinst()
exit 1 exit 1
fi fi
notif " 3/4 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE" notif " 3/4 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
if [ ! -d /mnt/apps ]; then folder_opks_emulators=/mnt/Emulators
mkdir -p /mnt/apps if [ ! -d "$folder_opks_emulators" ]; then
mkdir -p "$folder_opks_emulators"
mkdir -p ${root_mount} mkdir -p ${root_mount}
mount -t ext4 ${root_part} ${root_mount} mount -t ext4 ${root_part} ${root_mount}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
notif "CANNOT MOUNT ROOT^FILESYSTEM" notif "CANNOT MOUNT ROOT^FILESYSTEM"
exit 1 exit 1
fi fi
cp -f ${root_mount}/usr/games/opk/*.opk /mnt/apps/ cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
umount ${root_mount} umount ${root_mount}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
notif "CANNOT UNMOUNT ROOT^FILESYSTEM" notif "CANNOT UNMOUNT ROOT^FILESYSTEM"