Skip to content

Commit

Permalink
there is only HM-LGW or NORMAL for HM_MODE, thus no reason to check that
Browse files Browse the repository at this point in the history
if anyway both are allowed. in addition, change the priority of the
checks.
  • Loading branch information
jens-maus committed Sep 26, 2023
1 parent a050c8c commit 45b8fd4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildroot-external/overlay/base/etc/init.d/S99SetupLEDs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 45b8fd4

Please sign in to comment.