summaryrefslogtreecommitdiff
path: root/package/base-files/files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2010-05-03 09:05:35 +0000
committerFlorian Fainelli <florian@openwrt.org>2010-05-03 09:05:35 +0000
commit20da5f495f7b3eb45490ec792ce8566c5f9b5a16 (patch)
treed89ec253ac4a79cb28e0088830310fce77720aa5 /package/base-files/files
parent31548bfe2b3fdbccc5d22540a8476d75d370692b (diff)
downloadmtk-20170518-20da5f495f7b3eb45490ec792ce8566c5f9b5a16.zip
mtk-20170518-20da5f495f7b3eb45490ec792ce8566c5f9b5a16.tar.gz
mtk-20170518-20da5f495f7b3eb45490ec792ce8566c5f9b5a16.tar.bz2
add stop() to watchdog init script, patch from Yury Polyanskiy
SVN-Revision: 21334
Diffstat (limited to 'package/base-files/files')
-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 861a1f9..e44cbb1 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
+}