1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-18 19:52:49 +02:00
openwrt-xburst/target/linux/omap24xx/base-files/etc/init.d/watchdog

16 lines
292 B
Plaintext
Raw Normal View History

#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2010 OpenWrt.org
START=97
start() {
if ! [ -c /dev/watchdog -a -x /sbin/watchdog ]; then
echo "WARNING: Watchdog not available. System will reboot soon!"
else
/sbin/watchdog -T 63 -t 53 /dev/watchdog
fi
}
stop() {
killall -q watchdog
}