mirror of
https://github.com/FunKey-Project/FunKey-OS.git
synced 2026-03-19 18:32:45 +01:00
add swupdate to rootfs too
Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
@@ -9,8 +9,8 @@ case "$1" in
|
||||
keys=$(devmem 0x01c20500 16)
|
||||
if [ "${keys}" != "0xF83F" ]; then
|
||||
|
||||
# Automatic update requested
|
||||
updates=$(ls /mnt/FunKey-*.swu)
|
||||
# Automatic firmware update requested
|
||||
updates=$(ls /mnt/FunKey-*.fwu)
|
||||
if [ "x${updates}" = "x" ]; then
|
||||
menu &
|
||||
exit 1
|
||||
|
||||
@@ -96,7 +96,7 @@ menu_run () {
|
||||
if [ $? -ne 0 ]; then
|
||||
notif "${message}...^Cannot unmount USB!"
|
||||
else
|
||||
for file in $(ls /mnt/FunKey-*.swu); do
|
||||
for file in $(ls /mnt/FunKey-*.fwu); do
|
||||
swupdate -i "${file}"
|
||||
if [ $? -ne 0 ]; then
|
||||
notif "${message}...^Cannot update!"
|
||||
|
||||
Reference in New Issue
Block a user