mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-19 02:12:41 +01:00
working automatic partition update
Signed-off-by: Michel Stempin <michel.stempin@wanadoo.fr>
This commit is contained in:
24
Recovery/board/funkey/rootfs-overlay/etc/init.d/S01update
Executable file
24
Recovery/board/funkey/rootfs-overlay/etc/init.d/S01update
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
THIS=$(basename $0)
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
for file in /mnt/FunKey-*.swu; do
|
||||
swupdate -v -i "${file}"
|
||||
if [ $? -ne 0 ]; then
|
||||
share start
|
||||
mkdir -p /run/network
|
||||
/sbin/ifup -a
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
normal_mode
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop}" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user