mirror of https://github.com/hak5/openwrt-owl.git
16 lines
292 B
Plaintext
16 lines
292 B
Plaintext
|
#!/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
|
||
|
}
|