SVN: geninitrd/trunk/mod-autodetect.sh

shadzik shadzik at pld-linux.org
Wed Oct 20 18:55:17 CEST 2010


Author: shadzik
Date: Wed Oct 20 18:55:16 2010
New Revision: 11857

Modified:
   geninitrd/trunk/mod-autodetect.sh
Log:
- use find_module


Modified: geninitrd/trunk/mod-autodetect.sh
==============================================================================
--- geninitrd/trunk/mod-autodetect.sh	(original)
+++ geninitrd/trunk/mod-autodetect.sh	Wed Oct 20 18:55:16 2010
@@ -7,6 +7,7 @@
 	debug "Detecting modules"
 
 	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)"
+		module=$(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)
+		find_module "$module"
 	done
 }


More information about the pld-cvs-commit mailing list