SOURCES: start_udev - make use of udevtrigger

freetz freetz at pld-linux.org
Tue Mar 28 20:32:20 CEST 2006


Author: freetz                       Date: Tue Mar 28 18:32:20 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- make use of udevtrigger

---- Files affected:
SOURCES:
   start_udev (1.34 -> 1.35) 

---- Diffs:

================================================================
Index: SOURCES/start_udev
diff -u SOURCES/start_udev:1.34 SOURCES/start_udev:1.35
--- SOURCES/start_udev:1.34	Fri Mar  3 22:45:18 2006
+++ SOURCES/start_udev	Tue Mar 28 20:32:14 2006
@@ -110,33 +110,7 @@
 
 	# retrigger all events
 	mkdir -p /dev/.udev/queue
-	list=$(echo /sys/bus/*/devices/*/uevent)
-	list="$list $(echo /sys/class/*/*/uevent)"
-	list="$list $(echo /sys/block/*/uevent /sys/block/*/*/uevent)"
-	for i in $list; do
-	    case "$i" in
-		*/device/uevent|*\**)
-		    continue
-		    ;;
-		*/class/mem/*|*/class/tty/*)
-		    first="$first $i"
-		    ;;
-		*/block/md*)
-		    last="$last $i"
-		    ;;
-		*/*)
-		    default="$default $i"
-		    ;;
-	    esac
-	done
-	
-	ret=$(( $ret + $? ))
-	
-	# trigger the sorted events
-	for i in $first $default $last; do
-	    echo "add" > "$i"
-	done
-
+	udevtrigger	
 	ret=$(( $ret + $? ))
 	
 	# wait for the events to finish
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/start_udev?r1=1.34&r2=1.35&f=u



More information about the pld-cvs-commit mailing list