mirror of
https://github.com/femtofox/femtofox.git
synced 2026-12-03 05:10:19 -05:00
Merge pull request #255 from femtofox/new_working
Bug fixes for new firstboot flag.
This commit is contained in:
commit
614a23f68a
2 changed files with 2 additions and 3 deletions
|
|
@ -1,2 +1,2 @@
|
|||
firstboot=true
|
||||
first_boot=true
|
||||
act_led=enable
|
||||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue