summaryrefslogtreecommitdiff
path: root/package/busybox/S15watchdog
diff options
context:
space:
mode:
authorFabio Porcedda <fabio.porcedda@gmail.com>2012-05-04 02:02:13 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-05-06 22:43:52 +0200
commit07639ff186b7b07d843f901bd2413f0b0918b687 (patch)
treef0d7d51ed6ce57884642c5451dd78fb5d2e45604 /package/busybox/S15watchdog
parent2daf2de6e1a0a8807cd09b2f85dd1c998d022947 (diff)
busybox: add watchdog daemon startup script
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com> Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
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 $?