summaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-10-20 17:07:08 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-10-20 17:07:08 +0000
commitcfe1bc11adee94c4ce07d50fb960429fa17350aa (patch)
tree3419f13e77f12fd7e4895309acc4e86058e8ec75 /package/base-files/files/etc
parenta525c056d5909a50939374270859d5955bdb16fc (diff)
downloadmaster-31e0f0ae-cfe1bc11adee94c4ce07d50fb960429fa17350aa.tar.gz
master-31e0f0ae-cfe1bc11adee94c4ce07d50fb960429fa17350aa.tar.bz2
master-31e0f0ae-cfe1bc11adee94c4ce07d50fb960429fa17350aa.zip
base-files: only try to execute watchdog if binary is present
SVN-Revision: 18102
Diffstat (limited to 'package/base-files/files/etc')
-rwxr-xr-xpackage/base-files/files/etc/init.d/watchdog3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/watchdog b/package/base-files/files/etc/init.d/watchdog
index adb8f57c13..861a1f9eb0 100755
--- a/package/base-files/files/etc/init.d/watchdog
+++ b/package/base-files/files/etc/init.d/watchdog
@@ -3,5 +3,6 @@
START=97
start() {
- [ -c /dev/watchdog ] && watchdog -t 5 /dev/watchdog
+ [ -c /dev/watchdog ] && [ -x /sbin/watchdog ] && \
+ watchdog -t 5 /dev/watchdog
}