summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/init.d
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc/init.d')
-rwxr-xr-xpackage/base-files/files/etc/init.d/watchdog7
1 files changed, 6 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/watchdog b/package/base-files/files/etc/init.d/watchdog
index 861a1f9eb..e44cbb153 100755
--- a/package/base-files/files/etc/init.d/watchdog
+++ b/package/base-files/files/etc/init.d/watchdog
@@ -1,8 +1,13 @@
#!/bin/sh /etc/rc.common
-# Copyright (C) 2008 OpenWrt.org
+# Copyright (C) 2008-2010 OpenWrt.org
START=97
start() {
[ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
watchdog -t 5 /dev/watchdog
}
+
+stop() {
+ killall -q watchdog
+ [ -c /dev/watchdog ] && echo "V" > /dev/watchdog
+}