[no ci] update S99watchdog (#1203)

pull/1205/head
gtxaspec 2023-12-18 21:53:28 -08:00 committed by GitHub
parent b69339b81b
commit 1243f00bfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -2,11 +2,12 @@
DAEMON="watchdog"
WATCHDOG_VENDOR=$(ipcinfo -v)
WATCHDOG_ENABLED=false
WATCHDOG_TIMEOUT=60
WATCHDOG_ARGS="-T $WATCHDOG_TIMEOUT /dev/watchdog"
SUPPORTED_VENDORS="ingenic"
WATCHDOG_ARGS="-T $WATCHDOG_TIMEOUT /dev/watchdog"
WATCHDOG_VENDOR=$(ipcinfo -v)
vendor_supported() {
for vendor in $SUPPORTED_VENDORS; do
@ -22,7 +23,7 @@ start()
start-stop-daemon -S -q -x "/sbin/${DAEMON}" -- ${WATCHDOG_ARGS}
[ $? = 0 ] && echo "OK" || echo "FAIL"
else
echo "Watchdog: Unsupported vendor or Majestic Watchdog is enabled/standalone watchdog disabled"
echo "Watchdog: System watchdog disabled, unsupported vendor or Majestic Watchdog enabled"
exit 0
fi
}