diff options
author | Florian Fainelli <florian@openwrt.org> | 2010-05-03 09:05:35 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2010-05-03 09:05:35 +0000 |
commit | 20da5f495f7b3eb45490ec792ce8566c5f9b5a16 (patch) | |
tree | d89ec253ac4a79cb28e0088830310fce77720aa5 /package/base-files/files | |
parent | 31548bfe2b3fdbccc5d22540a8476d75d370692b (diff) | |
download | upstream-20da5f495f7b3eb45490ec792ce8566c5f9b5a16.tar.gz upstream-20da5f495f7b3eb45490ec792ce8566c5f9b5a16.tar.bz2 upstream-20da5f495f7b3eb45490ec792ce8566c5f9b5a16.zip |
add stop() to watchdog init script, patch from Yury Polyanskiy
SVN-Revision: 21334
Diffstat (limited to 'package/base-files/files')
-rwxr-xr-x | package/base-files/files/etc/init.d/watchdog | 7 |
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 861a1f9eb0..e44cbb153e 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 +} |