1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-29 13:55:31 +02:00
openwrt-xburst/target/linux/omap24xx/base-files/etc/init.d/watchdog
mb 60d3bc02ce omap24xx: Set hardware watchdog timeout to max
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25883 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-06 10:45:24 +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 63 -t 50 /dev/watchdog
[ -x /usr/bin/schedtool ] && /usr/bin/schedtool -R -p 60 -n -20 $(pidof watchdog)
}
stop() {
killall -q watchdog
}