summaryrefslogtreecommitdiff
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
commitdd2afbeee3b7cb99b65585e5bacdcd403c51996e (patch)
tree817d252da8725bb20764c60e93600ed2fcd96c0c /package/base-files
parentddc83122673b8bcc7cb3a2217ccc5964977ed5ce (diff)
downloadmtk-20170518-dd2afbeee3b7cb99b65585e5bacdcd403c51996e.zip
mtk-20170518-dd2afbeee3b7cb99b65585e5bacdcd403c51996e.tar.gz
mtk-20170518-dd2afbeee3b7cb99b65585e5bacdcd403c51996e.tar.bz2
Start the watchdog daemon if a harware watchdog is present
SVN-Revision: 10721
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 0000000..0821c8f
--- /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
+}