openwrt/target/linux/omap24xx/base-files/etc/init.d/watchdog
Michael Büsch 26c83e3248 omap24xx: Start watchdog with RT priority
SVN-Revision: 25882
2011-03-06 10:40:04 +00:00

18 lines
373 B
Bash
Executable File

#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2010 OpenWrt.org
START=25
start() {
[ -c /dev/watchdog -a -x /sbin/watchdog ] || {
echo "WARNING: Watchdog not available. System will reboot soon!"
return 1
}
/sbin/watchdog -T 60 -t 50 /dev/watchdog
[ -x /usr/bin/schedtool ] && /usr/bin/schedtool -R -p 60 -n -20 $(pidof watchdog)
}
stop() {
killall -q watchdog
}