Skip to content

Commit 800ff3b

Browse files
committed
force OPk update
Signed-off-by: Michel-FK <[email protected]>
1 parent f7dec06 commit 800ff3b

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

FunKey/board/funkey/update_partition

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,18 @@ do_postinst()
2828
fi
2929
notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
3030
folder_opks_emulators=/mnt/Emulators
31-
if [ ! -d "$folder_opks_emulators" ]; then
32-
mkdir -p "$folder_opks_emulators"
33-
mkdir -p ${root_mount}
34-
mount -t ext4 ${root_part} ${root_mount}
35-
if [ $? -ne 0 ]; then
36-
notif "CANNOT MOUNT ROOT^FILESYSTEM"
37-
exit 1
38-
fi
39-
cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
40-
umount ${root_mount}
41-
if [ $? -ne 0 ]; then
42-
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
43-
exit 1
44-
fi
31+
mkdir -p "$folder_opks_emulators"
32+
mkdir -p ${root_mount}
33+
mount -t ext4 ${root_part} ${root_mount}
34+
if [ $? -ne 0 ]; then
35+
notif "CANNOT MOUNT ROOT^FILESYSTEM"
36+
exit 1
37+
fi
38+
cp -f ${root_mount}/usr/games/opk/*.opk "$folder_opks_emulators"
39+
umount ${root_mount}
40+
if [ $? -ne 0 ]; then
41+
notif "CANNOT UNMOUNT ROOT^FILESYSTEM"
42+
exit 1
4543
fi
4644
for file in $(ls /mnt/FunKey-*.fwu); do
4745
notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"

0 commit comments

Comments
 (0)