From 705d2abac7f7f157899c156fd95cd18d3909f27e Mon Sep 17 00:00:00 2001 From: Michel-FK Date: Fri, 6 Nov 2020 16:47:53 +0100 Subject: [PATCH] mute .swu search when unmount SUB share Signed-off-by: Michel-FK --- FunKey/board/funkey/rootfs-overlay/usr/local/sbin/share | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/share b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/share index 4201d38..92b7384 100755 --- a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/share +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/share @@ -58,7 +58,7 @@ mount_share () { fi # Check if there is a software update file - for file in $(ls /mnt/FunKey-*.swu); do + for file in $(ls /mnt/FunKey-*.swu >/dev/null 2>&1); do swupdate -i "${file}" if [ $? -ne 0 ]; then break