Commit 34f17e3a authored by Stephan's avatar Stephan
Browse files

18.06 specific: files/common/usr/lib/ddmesh/ddmesh-bmxd.sh

timeout command has different parameters in openwrt 18.06
parent 60b6111c
......@@ -131,7 +131,7 @@ case "$ARG1" in
# connection check; if bmxd hangs, kill it
# check for existance of "timeout" cmd, else bmxd will be killed every time
if [ -n "$TIMEOUT" ]; then
$TIMEOUT -t 10 -s 9 $DAEMON -c --status >/dev/null || killall -9 $DAEMON
$TIMEOUT -s 9 10 $DAEMON -c --status >/dev/null || killall -9 $DAEMON
fi
test -z "$(pidof $DAEMON)" && logger -s "$DAEMON not running - restart" && $0 restart && exit
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment