mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-14 05:13:44 +02:00
20b373a23b
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22534 3c298f89-4303-0410-b956-a3cf2f4a3e73
16 lines
292 B
Bash
Executable File
16 lines
292 B
Bash
Executable File
#!/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
|
|
}
|