diff --git a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/etc/femto.conf b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/etc/femto.conf index c883d77..c682338 100644 --- a/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/etc/femto.conf +++ b/foxbuntu/sysdrv/out/rootfs_uclibc_rv1106/etc/femto.conf @@ -1,2 +1,2 @@ -firstboot=true +first_boot=true act_led=enable \ No newline at end of file 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 9be8d16..ed07fab 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,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