Skip to content

Commit f95a830

Browse files
committed
/mnt/Emulators now default folder to reinstall opks
1 parent aa1d880 commit f95a830

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

FunKey/board/funkey/update_partition

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,21 @@ do_postinst()
2222
exit 1
2323
fi
2424
notif " 3/4 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
25-
if [ ! -d /mnt/apps ]; then
26-
mkdir -p /mnt/apps
27-
mkdir -p ${root_mount}
28-
mount -t ext4 ${root_part} ${root_mount}
29-
if [ $? -ne 0 ]; then
30-
notif "CANNOT MOUNT ROOT^FILESYSTEM"
31-
exit 1
32-
fi
33-
cp -f ${root_mount}/usr/games/opk/*.opk /mnt/apps/
34-
umount ${root_mount}
35-
if [ $? -ne 0 ]; then
36-
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
37-
exit 1
38-
fi
25+
folder_opks_emulators=/mnt/Emulators
26+
if [ ! -d "$folder_opks_emulators" ]; then
27+
mkdir -p "$folder_opks_emulators"
28+
mkdir -p ${root_mount}
29+
mount -t ext4 ${root_part} ${root_mount}
30+
if [ $? -ne 0 ]; then
31+
notif "CANNOT MOUNT ROOT^FILESYSTEM"
32+
exit 1
33+
fi
34+
cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
35+
umount ${root_mount}
36+
if [ $? -ne 0 ]; then
37+
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
38+
exit 1
39+
fi
3940
fi
4041
for file in $(ls /mnt/FunKey-*.fwu); do
4142
notif " 4/4 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"

0 commit comments

Comments
 (0)