Skip to content

Commit

Permalink
added a check and execution of /usr/local/etc/rc.prelocal right in the
Browse files Browse the repository at this point in the history
startup phase of S55InitAddons which will be executed right before all
major homematic services are started but after the network should be up.
This should solved the need for having a user definable startup script
where users could mount external drives or executed utilities right
before the majore homematic services are started. This closes #1377.
  • Loading branch information
jens-maus committed Aug 12, 2021
1 parent ee6156d commit 3cb64d9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion buildroot-external/overlay/base/etc/init.d/S55InitAddons
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,17 @@ start() {

if [[ ! -e /etc/config/safemode ]]; then

# start third-party addons one after another
# adjust the oom score (which is inherited by run-parts)
# to ensure that others are killed first in case of low memory situations
echo 100 >/proc/$$/oom_score_adj

# call /usr/local/etc/rc.prelocal if it exists and is
# executable
if [[ -x /usr/local/etc/rc.prelocal ]]; then
/usr/local/etc/rc.prelocal
fi

# start init of third-party addons one after another
/bin/run-parts -a init /etc/config/rc.d >/dev/null 2>&1

echo "OK"
Expand Down

0 comments on commit 3cb64d9

Please sign in to comment.