fixed run once check for usb tool

Check if run once flag exists, if so exit silently.
This commit is contained in:
Ruledo 2025-01-20 03:00:31 -08:00
parent 83a95e5c69
commit 71f3ee6b42

View file

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