aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc/init.d
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
commit796f34550cf1516895a912176b042fc0f1963b33 (patch)
tree5c2d45388aac8e89f9bdb2cbde76b43f6bd99339 /package/base-files/files/etc/init.d
parent756b08b56a6c0135ce38ef633f523d064e6723d7 (diff)
downloadmaster-187ad058-796f34550cf1516895a912176b042fc0f1963b33.tar.gz
master-187ad058-796f34550cf1516895a912176b042fc0f1963b33.tar.bz2
master-187ad058-796f34550cf1516895a912176b042fc0f1963b33.zip
[package] base-files: only try to execute watchdog if binary is present
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@18102 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/init.d')
-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
}