From 45b8fd469205b4862d8296562a9b6c9709053b43 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Tue, 26 Sep 2023 21:20:05 +0200 Subject: [PATCH] there is only HM-LGW or NORMAL for HM_MODE, thus no reason to check that if anyway both are allowed. in addition, change the priority of the checks. --- buildroot-external/overlay/base/etc/init.d/S99SetupLEDs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/buildroot-external/overlay/base/etc/init.d/S99SetupLEDs b/buildroot-external/overlay/base/etc/init.d/S99SetupLEDs index 7e937adc18..f2fa91633b 100755 --- a/buildroot-external/overlay/base/etc/init.d/S99SetupLEDs +++ b/buildroot-external/overlay/base/etc/init.d/S99SetupLEDs @@ -46,9 +46,9 @@ 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 + # execute /usr/local/etc/rc.postlocal (but not in safemode) + if [[ -x /usr/local/etc/rc.postlocal ]] && [[ ! -e /etc/config/safemode ]]; then + /usr/local/etc/rc.postlocal fi # signal that the system startup is finished