Author: shadzik
Date: Wed Oct 20 18:53:38 2010
New Revision: 11856

Modified:
   geninitrd/trunk/mod-autodetect.sh
Log:
- ignore scsi, mod-scsi.sh is for that
- use $kernel variable instead of uname


Modified: geninitrd/trunk/mod-autodetect.sh
==============================================================================
--- geninitrd/trunk/mod-autodetect.sh   (original)
+++ geninitrd/trunk/mod-autodetect.sh   Wed Oct 20 18:53:38 2010
@@ -6,7 +6,7 @@
 {
        debug "Detecting modules"
 
-       for class in 0106 0107 0100 0101; do
-               PREMODS="$PREMODS $(lspci -n |grep $class |sed 's/:/ /g' |while 
read junk junk class vendor device junk; do grep "0x0000$vendor 0x0000$device" 
/lib/modules/$(uname -r)/modules.pcimap |awk '{print $1}'; done |uniq)"
+       for class in 0106 0107 0101; do
+               PREMODS="$PREMODS $(lspci -n |grep $class |sed 's/:/ /g' |while 
read junk junk class vendor device junk; do grep "0x0000$vendor 0x0000$device" 
/lib/modules/$kernel/modules.pcimap |awk '{print $1}'; done |uniq)"
        done
 }
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to