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,7 +9,7 @@ root_mount=/tmp/rootfs
do_preinst()
{
notif "1/5 Extract update"
notif "1/5 Extract firmware update..."
exit 0
}
@@ -37,7 +37,7 @@ do_postinst()
notif "Cannot unmount root filesystem"
exit 1
fi
for file in $(ls /mnt/FunKey-rootfs-*.swu); do
for file in $(ls /mnt/FunKey-rootfs-*.fwu); do
notif "5/5 Erase update file"
rm -f "${file}"
done