diff options
author | greg@kroah.com <greg@kroah.com> | 2004-12-05 08:31:37 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:06:10 -0700 |
commit | d18c91df7fe7134b7aea6f68b183296ac94633ed (patch) | |
tree | e16fb0bf63eb30281937de077aa9ac31d6ebe653 /etc/init.d/udev.init.lfs | |
parent | 69bef84191f12dd82f7520f57e195f510bc9f96f (diff) |
[PATCH] use udevstart for udev.init.* files.
Thanks to Kay for pointing it out.
Diffstat (limited to 'etc/init.d/udev.init.lfs')
-rw-r--r-- | etc/init.d/udev.init.lfs | 39 |
1 files changed, 2 insertions, 37 deletions
diff --git a/etc/init.d/udev.init.lfs b/etc/init.d/udev.init.lfs index 41a3fecf0f..d4f64062b8 100644 --- a/etc/init.d/udev.init.lfs +++ b/etc/init.d/udev.init.lfs @@ -10,38 +10,6 @@ . /etc/udev/udev.conf sysfs_dir="/sys" -bin="/sbin/udev" - - -run_udev () -{ - # handle block devices and their partitions - for i in ${sysfs_dir}/block/*; do - # add each drive - export DEVPATH=${i#${sysfs_dir}} - $bin block & - - # add each partition, on each device - for j in $i/*; do - if [ -f $j/dev ]; then - export DEVPATH=${j#${sysfs_dir}} - $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-` - $bin $CLASS & - fi - done - done - return 0 -} case "$1" in start) @@ -62,14 +30,11 @@ case "$1" in # propogate /udev from /sys - we only need this while we do not # have initramfs and an early user-space with which to do early # device bring up - export ACTION=add - run_udev + udevstart evaluate_retval ;; stop) - echo "Removing udev device nodes ..." - export ACTION=remove - run_udev + echo "Stopping udev ..." evaluate_retval ;; reload) |