From 71f3ee6b42de8f5e8f3f7ced73c59d7fa8fdeb8d Mon Sep 17 00:00:00 2001 From: Ruledo Date: Mon, 20 Jan 2025 03:00:31 -0800 Subject: [PATCH] fixed run once check for usb tool Check if run once flag exists, if so exit silently. --- .../usr/local/bin/femto-usb-config-tool.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-usb-config-tool.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-usb-config-tool.sh index 2fa8bea..18e7d62 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-usb-config-tool.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-usb-config-tool.sh @@ -1,7 +1,10 @@ #!/bin/bash -if [ ! -e "/etc/.firstboot" ]; then +if [ -e "/etc/.firstboot" ]; then + echo "First boot, skipping USB Configuration Tool." + logger "First boot, skipping USB Configuration Tool." exit 0 +fi mount_point="/mnt/usb" # Set the mount point