mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2025-12-13 08:08:51 +01:00
force OPk update
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
parent
f7dec069cd
commit
800ff3b306
@ -28,20 +28,18 @@ do_postinst()
|
|||||||
fi
|
fi
|
||||||
notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
|
notif " 4/5 COPY OPKS TO USB MOUNT^DO NOT TURN OFF THE CONSOLE"
|
||||||
folder_opks_emulators=/mnt/Emulators
|
folder_opks_emulators=/mnt/Emulators
|
||||||
if [ ! -d "$folder_opks_emulators" ]; then
|
mkdir -p "$folder_opks_emulators"
|
||||||
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 "$folder_opks_emulators"
|
||||||
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"
|
exit 1
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
for file in $(ls /mnt/FunKey-*.fwu); do
|
for file in $(ls /mnt/FunKey-*.fwu); do
|
||||||
notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
|
notif " 5/5 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user