]> err.no Git - systemd/commitdiff
[PATCH] fix up the wait_for_sysfs_test script a bit.
authorgreg@kroah.com <greg@kroah.com>
Tue, 19 Oct 2004 02:04:20 +0000 (19:04 -0700)
committerGreg KH <gregkh@suse.de>
Wed, 27 Apr 2005 05:02:45 +0000 (22:02 -0700)
We also emit the same things the -mm tree does now, so to make that easier
to test for.

test/wait_for_sysfs_test.sh

index 659d99a9fe7ed5a4a9a68c4feaed924a6a90085e..9b80a42271f380cee88db09370d6fab969c50aa5 100644 (file)
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 #
 
 # Check for missing binaries (stale symlinks should not happen)
@@ -25,13 +25,17 @@ run_udev () {
        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-`
-                               $UDEV_BIN $CLASS
-#                      fi
+               # try adding empty classes, just to test stuff...
+               export DEVPATH=${i#${SYSFS_DIR}}
+               CLASS=`echo ${i#${SYSFS_DIR}} | cut --delimiter='/' --fields=3-`
+               $UDEV_BIN $CLASS
+
+               for j in `ls $i/`; do
+                       x=$i/$j
+                       export DEVPATH=${x#${SYSFS_DIR}}
+                       CLASS=`echo ${i#${SYSFS_DIR}} | \
+                               cut --delimiter='/' --fields=3-`
+                       $UDEV_BIN $CLASS
                done
        done
 }