Skip to content

Commit

Permalink
user absolute path to timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jens-maus committed Sep 27, 2023
1 parent 2bbb616 commit e833e99
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions buildroot-external/overlay/base/etc/init.d/S06InitSystem
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ start() {
if [[ ! -e /etc/config/safemode ]]; then
if [[ -x /usr/local/etc/rc.init ]]; then
echo -n "rc.init, "
timeout 120 /usr/local/etc/rc.init
/usr/bin/timeout 120 /usr/local/etc/rc.init
fi
fi

Expand All @@ -133,7 +133,7 @@ start() {
if [[ ! -e /etc/config/safemode ]]; then
if [[ -x /usr/local/etc/rc.postinit ]]; then
echo -n "rc.postinit, "
timeout 120 /usr/local/etc/rc.postinit
/usr/bin/timeout 120 /usr/local/etc/rc.postinit
fi
fi

Expand Down
2 changes: 1 addition & 1 deletion buildroot-external/overlay/base/etc/init.d/S55InitAddons
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ start() {
# executable
if [[ -x /usr/local/etc/rc.prelocal ]]; then
echo -n "rc.prelocal, "
timeout 120 /usr/local/etc/rc.prelocal
/usr/bin/timeout 120 /usr/local/etc/rc.prelocal
fi

# start init of third-party addons one after another
Expand Down
2 changes: 1 addition & 1 deletion buildroot-external/overlay/base/etc/init.d/S98StartAddons
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ start() {
# call rc.local
if [[ -x /usr/local/etc/rc.local ]]; then
echo -n "rc.local, "
timeout 120 /usr/local/etc/rc.local
/usr/bin/timeout 120 /usr/local/etc/rc.local
fi

echo "OK"
Expand Down
2 changes: 1 addition & 1 deletion buildroot-external/overlay/base/etc/init.d/S99SetupLEDs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ start() {
# execute /usr/local/etc/rc.postlocal (but not in safemode)
if [[ -x /usr/local/etc/rc.postlocal ]] && [[ ! -e /etc/config/safemode ]]; then
echo -n "rc.postlocal, "
timeout 120 /usr/local/etc/rc.postlocal
/usr/bin/timeout 120 /usr/local/etc/rc.postlocal
fi

# if we are in safemode we remove the safemode control-file
Expand Down

0 comments on commit e833e99

Please sign in to comment.