summaryrefslogtreecommitdiff
path: root/package/busybox/S15watchdog
diff options
context:
space:
mode:
Diffstat (limited to 'package/busybox/S15watchdog')
-rw-r--r--package/busybox/S15watchdog20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/busybox/S15watchdog b/package/busybox/S15watchdog
new file mode 100644
index 000000000..7f1110c46
--- /dev/null
+++ b/package/busybox/S15watchdog
@@ -0,0 +1,20 @@
+#!/bin/sh
+#
+# Start watchdog
+#
+
+case "$1" in
+ start)
+ echo "Starting watchdog..."
+ watchdog -t PERIOD /dev/watchdog
+ ;;
+ stop)
+ ;;
+ restart|reload)
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|restart}"
+ exit 1
+esac
+
+exit $?