Skip to content

Commit

Permalink
introduce rc.postlocal executable file...
Browse files Browse the repository at this point in the history
which can be executed at the very end of the boot process in normal-mode and lgw-mode
  • Loading branch information
Baxxy13 committed Sep 26, 2023
1 parent 559b86b commit a050c8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildroot-external/overlay/base/etc/init.d/S99SetupLEDs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ start() {
fi
fi

# executing /etc/rc.postlocal in LGW & Normal-Mode but not in Safemode
if [[ "${HM_MODE}" == "HM-LGW" ]] || [[ "${HM_MODE}" == "NORMAL" ]] && { [[ ! -e /etc/config/safemode ]] && [[ -x /usr/local/etc/rc.postlocal ]]; } then
/usr/local/etc/rc.postlocal
fi

# signal that the system startup is finished
touch /var/status/startupFinished

Expand Down

0 comments on commit a050c8c

Please sign in to comment.