summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/files/udev.init
diff options
context:
space:
mode:
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 " ."
+}