From b308e4d6031d1eb66b62df24964db0cb80bbe034 Mon Sep 17 00:00:00 2001 From: nagumii Date: Fri, 24 Jan 2025 22:44:56 +0200 Subject: [PATCH] Update femto-runonce.sh --- .../usr/local/bin/femto-runonce.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh index 7d6346c..91bc0df 100755 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/usr/local/bin/femto-runonce.sh @@ -3,11 +3,7 @@ log_message() { echo -e "\e[32mFirst boot\e[0m: $1" # Echo to the screen logger "First boot: $1" # Log to the system log } -set -x if ! grep -qE '^first_boot=true' /etc/femto.conf; then # if not the first boot -echo "*****************************************" -echo "boot flag is false" -echo "*****************************************" who | grep -q . || exit 0 # if not logged in, exit script. May not deal well with future web UI @@ -26,9 +22,6 @@ Proceed?" 14 60 exit 0 fi else - echo "*****************************************" -echo "boot flag is true?" -echo "*****************************************" fi echo -e "\e[32m******* First boot *******\e[0m" @@ -103,13 +96,7 @@ fi #systemctl restart meshtasticd # remove first boot flag -echo "*****************************************" -cat /etc/femto.conf -echo "*****************************************" sed -i -E 's/^first_boot=.*/first_boot=false/' /etc/femto.conf -echo "*****************************************" -cat /etc/femto.conf -echo "*****************************************" log_message "Removing first boot flag and rebooting in 5 seconds..." sleep 5 reboot