summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/init.d/watchdog
blob: 65a45e53f23602fb633aba277984649b7e9ccec5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh /etc/rc.common
# Copyright (C) 2008-2010 OpenWrt.org

START=97
start() {
        [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
        	watchdog -t 5 /dev/watchdog
}

stop() {
	killall -q watchdog
}