diff options
author | John Crispin <john@openwrt.org> | 2013-03-13 18:11:19 +0000 |
---|---|---|
committer | John Crispin <john@openwrt.org> | 2013-03-13 18:11:19 +0000 |
commit | f43b7934d2850c2f545736253a0f8cbe4915fdff (patch) | |
tree | 3718ca82dd27e3917a51439823bfb20a067af784 /package/base-files/files.old/etc/watchdog | |
parent | 1360067c4a75cd1804710e6f25871f695d3271b2 (diff) | |
download | upstream-f43b7934d2850c2f545736253a0f8cbe4915fdff.tar.gz upstream-f43b7934d2850c2f545736253a0f8cbe4915fdff.tar.bz2 upstream-f43b7934d2850c2f545736253a0f8cbe4915fdff.zip |
make basefiles aware of procd
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 36003
Diffstat (limited to 'package/base-files/files.old/etc/watchdog')
-rwxr-xr-x | package/base-files/files.old/etc/watchdog | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/base-files/files.old/etc/watchdog b/package/base-files/files.old/etc/watchdog new file mode 100755 index 0000000000..299c891428 --- /dev/null +++ b/package/base-files/files.old/etc/watchdog @@ -0,0 +1,13 @@ +#!/bin/sh /etc/rc.common +# Copyright (C) 2008-2011 OpenWrt.org + +START=97 + +start() { + [ -c /dev/watchdog ] || return 1 + [ -x /sbin/watchdog ] || return 1 + service_start /sbin/watchdog -t 5 /dev/watchdog +} +stop() { + service_stop /sbin/watchdog +} |