Author: glen
Date: Fri Jan 14 12:39:03 2011
New Revision: 12055

Modified:
   geninitrd/trunk/mod-sata.sh
Log:
- as uknown what to do for multiple module match at least load them for now

Modified: geninitrd/trunk/mod-sata.sh
==============================================================================
--- geninitrd/trunk/mod-sata.sh (original)
+++ geninitrd/trunk/mod-sata.sh Fri Jan 14 12:39:03 2011
@@ -30,12 +30,15 @@
        # 0101 - IDE/PATA
        # 0106 - SATA/AHCI
        # 0107 - SAS
-       local module
-       module=$(find_modules_by_class 0106)
+       local m modules
+       modules=$(find_modules_by_class 0106)
 
-       if [ "$module" ]; then
+       if [ "$modules" ]; then
                # FIXME: how to handle if multiple modules returned?
                # i.e two modules can do same id
-               find_module "$module"
+               # currently we load all of them...
+               for m in $modules; do
+                       find_module $m
+               done
        fi
 }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to