remove funkey_gpio_management from update

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK 2021-04-13 16:39:31 +02:00
parent 853d7e3096
commit e6d932c8c7
2 changed files with 5 additions and 20 deletions

View File

@ -2,7 +2,7 @@ software =
{ {
version = "2.1.0"; version = "2.1.0";
hardware-compatibility = [ "#RE:^Rev\.[D-E]$" ]; hardware-compatibility = [ "#RE:^Rev\.[D-F]$" ];
images: ( images: (
{ {
@ -13,12 +13,6 @@ software =
compressed = "zlib"; compressed = "zlib";
} }
); );
files: (
{
filename = "funkey_gpio_management";
path = "/tmp/funkey_gpio_management";
}
);
scripts: ( scripts: (
{ {
filename = "update_partition"; filename = "update_partition";

View File

@ -9,25 +9,16 @@ root_mount=/tmp/rootfs
do_preinst() do_preinst()
{ {
notif " 1/5 EXTRACT FIRMWARE UPDATE..^DO NOT TURN OFF THE CONSOLE" notif " 1/4 EXTRACT FIRMWARE UPDATE..^DO NOT TURN OFF THE CONSOLE"
exit 0 exit 0
} }
do_postinst() do_postinst()
{ {
################
# Fix recovery #
################
notif " 2/5 FIX RECOVERY GPIO MANAGER"
rw
cp -a /tmp/funkey_gpio_management /usr/local/sbin/
chmod +x /usr/local/sbin/funkey_gpio_management
ro
################# #################
# Resize Rootfs # # Resize Rootfs #
################# #################
notif " 3/5 RESIZE ROOT FILESYSTEM^DO NOT TURN OFF THE CONSOLE" notif " 2/4 RESIZE ROOT FILESYSTEM^DO NOT TURN OFF THE CONSOLE"
resize2fs ${root_part} resize2fs ${root_part}
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
notif " CANNOT RESIZE ROOT^FILESYSTEM" notif " CANNOT RESIZE ROOT^FILESYSTEM"
@ -37,7 +28,7 @@ do_postinst()
############# #############
# Copy OPKs # # Copy OPKs #
############# #############
notif " 4/5 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"
# Mount Rootfs # Mount Rootfs
mkdir -p ${root_mount} mkdir -p ${root_mount}
@ -66,7 +57,7 @@ do_postinst()
# Erase update file # # Erase update file #
##################### #####################
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 " 4/4 ERASE UPDATE FILE^DO NOT TURN OFF THE CONSOLE"
rm -f "${file}" rm -f "${file}"
done done
exit 0 exit 0