add swupdate to rootfs too

Signed-off-by: Michel-FK <michel.stempin@funkey-project.com>
This commit is contained in:
Michel-FK
2020-11-05 14:46:49 +01:00
parent d7b0cdedca
commit 0f408f3b63
8 changed files with 152 additions and 11 deletions

View File

@@ -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

View File

@@ -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!"