SOURCES: start_udev - back to cat | grep

freetz freetz at pld-linux.org
Sat Oct 22 20:54:16 CEST 2005


Author: freetz                       Date: Sat Oct 22 18:54:16 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- back to cat | grep

---- Files affected:
SOURCES:
   start_udev (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: SOURCES/start_udev
diff -u SOURCES/start_udev:1.22 SOURCES/start_udev:1.23
--- SOURCES/start_udev:1.22	Sat Oct 22 18:31:08 2005
+++ SOURCES/start_udev	Sat Oct 22 20:54:11 2005
@@ -224,7 +224,8 @@
 /sbin/${UDEV_STARTER}
 
 # wait for the udev/udevd childs to finish
-while [ "$(grep -c -E '^Name:[[:space:]]*udevd?$' /proc/[0-9]*/status)" -gt 1 ]; do
+while [ "$(cat /proc/[0-9]*/status 2> /dev/null | \
+        grep -c -E '^Name:[[:space:]]*udevd?$')" -gt 1 ]; do
     sleep 1
     udevd_timeout=$(($udevd_timeout - 1))
     if [ $udevd_timeout -eq 0 ]; then
================================================================

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




More information about the pld-cvs-commit mailing list