]> err.no Git - systemd/commitdiff
[PATCH] make udev init script run udev in the background to let startup go much faster
authorgreg@kroah.com <greg@kroah.com>
Thu, 25 Dec 2003 05:25:40 +0000 (21:25 -0800)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 04:13:10 +0000 (21:13 -0700)
etc/init.d/udev

index 36ef2dafda2231b73d1379f6a4cb8264c4b369a2..c540057d21ae82b925ed0d56286bc8f354150304 100644 (file)
@@ -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}/*