summaryrefslogtreecommitdiff
path: root/openwrt/rhctl/files/udev.init
blob: 76796fec68418d2ddcb47fc6510090dd5b63e39e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 " ."
}