From 2d2ddf507bf1ae2f4cc595b23b8e018398cbe8dd Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 23 Jul 2009 18:24:11 +0000 Subject: move core/* to main/ added maintainer to several packages as well --- main/busybox-initscripts/watchdog.initd | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 main/busybox-initscripts/watchdog.initd (limited to 'main/busybox-initscripts/watchdog.initd') diff --git a/main/busybox-initscripts/watchdog.initd b/main/busybox-initscripts/watchdog.initd new file mode 100644 index 000000000..7363bb755 --- /dev/null +++ b/main/busybox-initscripts/watchdog.initd @@ -0,0 +1,25 @@ +#!/sbin/runscript + +depend() { + need dev + after hwdrivers +} + +start() { + if ! [ -n "$WATCHDOG_DEV" ]; then + eerror "WATCHDOG_DEV is not set" + return 1 + fi + + ebegin "Starting busybox watchdog" + start-stop-daemon --start --exec /sbin/watchdog \ + -- $WATCHDOG_OPTS $WATCHDOG_DEV + eend $? +} + +stop () { + ebegin "Stopping busybox watchdog" + start-stop-daemon --stop --exec /sbin/watchdog + eend $? +} + -- cgit v1.2.3