Merge pull request #255 from femtofox/new_working

Bug fixes for new firstboot flag.
This commit is contained in:
noon92 2025-01-24 23:03:35 +02:00 • committed by GitHub
commit 614a23f68a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 3 deletions

View file

@ -1,2 +1,2 @@
firstboot=true
first_boot=true
act_led=enable

View file

@ -3,8 +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
}
if grep -qE '^first_boot=false' /etc/femto.conf; then # if not the first boot
if ! grep -qE '^first_boot=true' /etc/femto.conf; then # if not the first boot
who | grep -q . || exit 0 # if not logged in, exit script. May not deal well with future web UI