From 2e8a3f71367f6af143ee1979446a51e40f668a67 Mon Sep 17 00:00:00 2001 From: Ruledo Date: Sun, 19 Jan 2025 23:16:12 -0800 Subject: [PATCH] Do not run usb tool on first boot. Checks for first boot flag and exits gracefully. --- .../usr/local/bin/femto-usb-config-tool.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 e76f999..587564e 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,4 +1,8 @@ #!/bin/bash + +if [ ! -e "/etc/.firstboot" ]; then + exit 0 + mount_point="/mnt/usb" # Set the mount point # Function to log to screen, syslog and logfile to be saved to usb drive