aboutsummaryrefslogtreecommitdiffstats
path: root/package/base-files/files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'package/base-files/files/etc')
-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
+}