mirror of https://github.com/OpenIPC/firmware.git
[no ci] S99watchdog: enhance boot messages (#1241)
parent
77928cb844
commit
523bbd5c97
|
@ -18,12 +18,22 @@ vendor_supported() {
|
||||||
|
|
||||||
start()
|
start()
|
||||||
{
|
{
|
||||||
if vendor_supported && [ "$(cli -g .watchdog.enabled)" = "false" ] && [ "$WATCHDOG_ENABLED" = "true" ]; then
|
if [ "$(cli -g .watchdog.enabled)" = "true" ]; then
|
||||||
printf "Starting ${DAEMON}: "
|
printf "Starting ${DAEMON}: "
|
||||||
start-stop-daemon -S -q -x "/sbin/${DAEMON}" -- ${WATCHDOG_ARGS}
|
echo "majestic watchdog enabled"
|
||||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if vendor_supported && [ "$WATCHDOG_ENABLED" = "true" ]; then
|
||||||
|
printf "Starting ${DAEMON}: "
|
||||||
|
start-stop-daemon -b -S -q -x "/sbin/${DAEMON}" -- ${WATCHDOG_ARGS}
|
||||||
|
if [ $? = 0 ]; then
|
||||||
|
echo "OK"
|
||||||
|
else
|
||||||
|
echo "FAIL"
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "Watchdog: System watchdog disabled, unsupported vendor or Majestic Watchdog enabled"
|
echo "Watchdog: System watchdog disabled"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue