Author: glen
Date: Wed Oct 20 23:01:16 2010
New Revision: 11868

Modified:
   geninitrd/trunk/tests/find-module-by-pciclass.sh
Log:
- lowercase found module

Modified: geninitrd/trunk/tests/find-module-by-pciclass.sh
==============================================================================
--- geninitrd/trunk/tests/find-module-by-pciclass.sh    (original)
+++ geninitrd/trunk/tests/find-module-by-pciclass.sh    Wed Oct 20 23:01:16 2010
@@ -4,13 +4,18 @@
 
 sysfs=${sysfs:-/sys}
 
+lowercase() {
+       echo "$1" | LC_ALL=C tr '[A-Z]' '[a-z]'
+}
+
 find_modules_by_class() {
        set -$flags
        local path module class="$1"
        for path in $(grep -l $class $sysfs/bus/pci/devices/*/class); do
                module=$(readlink ${path%/class}/driver)
                module=${module##*/}
-               echo $module
+               # 2.6.16 (at least) has this uppercased, workaround
+               lowercase $module
        done
 }
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to