diff options
author | greg@kroah.com <greg@kroah.com> | 2003-12-24 21:25:40 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:10 -0700 |
commit | 5779dd31f49b41d52d1f08c2eb4239926fa58864 (patch) | |
tree | f6902028cffad5e204e74a67f6084b8967850cb0 | |
parent | 07562d6ecf64f708a3a20388200ec8bd9c5a3774 (diff) |
[PATCH] make udev init script run udev in the background to let startup go much faster
-rw-r--r-- | etc/init.d/udev | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/etc/init.d/udev b/etc/init.d/udev index 36ef2dafda..c540057d21 100644 --- a/etc/init.d/udev +++ b/etc/init.d/udev @@ -28,13 +28,13 @@ case "$1" in for i in ${sysfs_dir}/block/*; do # add each drive export DEVPATH=${i#${sysfs_dir}} - $bin block + $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 + $bin block & fi done done @@ -45,13 +45,14 @@ case "$1" in export DEVPATH=${j#${sysfs_dir}} CLASS=`echo ${i#${sysfs_dir}} | \ cut --delimiter='/' --fields=3-` - $bin $CLASS + $bin $CLASS & fi done done ;; stop) # be careful + action "Removing udev device nodes: " /bin/true if [ $udev_dir -a "$udev_dir" != "/" ]; then # clear out /udev rm -rf ${udev_dir}/* |