aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2008-04-03 14:36:10 +0000
committerFlorian Fainelli <florian@openwrt.org>2008-04-03 14:36:10 +0000
commit09c0e0ce708f8493f8ff2db4a0dc832a52cb4ced (patch)
treee1e024e477bc87fcbad17912ec3dc00b5bf07e26 /package/base-files
parent8cb8f805a591b82a2e21f7fea34311a2363b4765 (diff)
downloadupstream-09c0e0ce708f8493f8ff2db4a0dc832a52cb4ced.tar.gz
upstream-09c0e0ce708f8493f8ff2db4a0dc832a52cb4ced.tar.bz2
upstream-09c0e0ce708f8493f8ff2db4a0dc832a52cb4ced.zip
Start the watchdog daemon if a harware watchdog is present
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10721 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files')
-rwxr-xr-xpackage/base-files/files/etc/init.d/watchdog7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/base-files/files/etc/init.d/watchdog b/package/base-files/files/etc/init.d/watchdog
new file mode 100755
index 0000000000..0821c8f475
--- /dev/null
+++ b/package/base-files/files/etc/init.d/watchdog
@@ -0,0 +1,7 @@
+#!/bin/sh /etc/rc.common
+# Copyright (C) 2008 OpenWrt.org
+
+START=97
+start() {
+ [ -f /dev/watchtog ] && watchdog -t 5 /dev/watchdog
+}