summaryrefslogtreecommitdiff
path: root/etc/init.d/udev.init.LSB
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-12-05 08:31:37 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 23:06:10 -0700
commitd18c91df7fe7134b7aea6f68b183296ac94633ed (patch)
treee16fb0bf63eb30281937de077aa9ac31d6ebe653 /etc/init.d/udev.init.LSB
parent69bef84191f12dd82f7520f57e195f510bc9f96f (diff)
[PATCH] use udevstart for udev.init.* files.
Thanks to Kay for pointing it out.
Diffstat (limited to 'etc/init.d/udev.init.LSB')
-rw-r--r--etc/init.d/udev.init.LSB38
1 files changed, 3 insertions, 35 deletions
diff --git a/etc/init.d/udev.init.LSB b/etc/init.d/udev.init.LSB
index 0f5881c416..0fb0f0c205 100644
--- a/etc/init.d/udev.init.LSB
+++ b/etc/init.d/udev.init.LSB
@@ -49,34 +49,6 @@ SYSFS_DIR=/sys
# Source LSB init functions
. /lib/lsb/init-functions
-run_udev () {
- # handle block devices and their partitions
- for i in ${SYSFS_DIR}/block/*; do
- # add each drive
- export DEVPATH=${i#${SYSFS_DIR}}
- $UDEV_BIN block &
-
- # add each partition, on each device
- for j in $i/*; do
- if [ -f $j/dev ]; then
- export DEVPATH=${j#${SYSFS_DIR}}
- $UDEV_BIN block &
- fi
- done
- done
- # all other device classes
- for i in ${SYSFS_DIR}/class/*; do
- for j in $i/*; do
- if [ -f $j/dev ]; then
- export DEVPATH=${j#${SYSFS_DIR}}
- CLASS=`echo ${i#${SYSFS_DIR}} | \
- cut --delimiter='/' --fields=3-`
- $UDEV_BIN $CLASS &
- fi
- done
- done
-}
-
case "$1" in
start)
if [ ! -d $SYSFS_DIR ]; then
@@ -91,16 +63,12 @@ case "$1" in
# device bring up
echo -n "Creating initial udev device nodes: "
export ACTION=add
- run_udev
+ udevstart
log_success_msg
;;
stop)
- # be careful
- echo -n "Removing udev device nodes: "
- export ACTION=remove
- run_udev
- rm -f $udev_db || exit 1
- rmdir $udev_root || exit 1
+ # nothing to do here
+ echo -n "Stopping udev: "
log_success_msg
;;
restart)