summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/files/udev.init
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2009-11-17 15:35:15 (GMT)
committerChristian Pointner <equinox@helsinki.at>2009-11-17 15:35:15 (GMT)
commitb1ae0fb1e45f4d6cc79200b30b18a7aac0f9b7de (patch)
tree69ed56187e94ca1ecd2cef2a082aef769dc05eac /openwrt/rhctl/files/udev.init
parent0e5843d0ab4bed1a8bf9afb11834b4cc71d11adf (diff)
added dependency to udev and init script for it
removed dependency to socat (not working anyway) some fixes at openwrt package
Diffstat (limited to 'openwrt/rhctl/files/udev.init')
-rw-r--r--openwrt/rhctl/files/udev.init25
1 files changed, 25 insertions, 0 deletions
diff --git a/openwrt/rhctl/files/udev.init b/openwrt/rhctl/files/udev.init
new file mode 100644
index 0000000..76796fe
--- /dev/null
+++ b/openwrt/rhctl/files/udev.init
@@ -0,0 +1,25 @@
+#!/bin/sh /etc/rc.common
+START=69
+
+BIN=udevd
+DAEMON=/sbin/$BIN
+TRIGGER=/sbin/udevtrigger
+SETTLE=/sbin/udevsettle
+OPTIONS="--daemon"
+DESC=$BIN
+
+start() {
+ echo -n "Starting $DESC:"
+ $DAEMON $OPTIONS
+ echo -n " triggering .. "
+ $TRIGGER
+ echo -n " wait for settle"
+ $SETTLE
+ echo " ."
+}
+
+stop() {
+ echo -n "Stopping $DESC:"
+ killall $BIN
+ echo " ."
+}