summaryrefslogtreecommitdiff
path: root/target/linux/omap24xx/base-files/etc/init.d/watchdog
blob: fa5dc4365a20b4e113aedb96640ef1d481a0a5b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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
}