SVN: geninitrd/trunk/mod-sata.sh

arekm arekm at pld-linux.org
Thu Jan 13 21:07:24 CET 2011


Author: arekm
Date: Thu Jan 13 21:07:24 2011
New Revision: 12042

Modified:
   geninitrd/trunk/mod-sata.sh
Log:
Ignore lspci errors.

Modified: geninitrd/trunk/mod-sata.sh
==============================================================================
--- geninitrd/trunk/mod-sata.sh	(original)
+++ geninitrd/trunk/mod-sata.sh	Thu Jan 13 21:07:24 2011
@@ -18,9 +18,9 @@
 	# 0100 - SCSI
 	local module
 	local vendordev
-	vendordev=$(lspci -n -p /lib/modules/$kernel/modules.pcimap |awk '/0106/{ gsub(/:/," "); print "0x0000"$4 " " "0x0000"$5}')
+	vendordev=$(lspci -n -p /lib/modules/$kernel/modules.pcimap 2> /dev/null | awk '/0106/{ gsub(/:/," "); print "0x0000"$4 " " "0x0000"$5}')
 	if [ -n "$vendordev" ]; then
-		module=$(grep "$vendordev" /lib/modules/$kernel/modules.pcimap |awk '{print $1}')
+		module=$(grep "$vendordev" /lib/modules/$kernel/modules.pcimap | awk '{print $1}')
 		find_module "$module"
 	fi
 }


More information about the pld-cvs-commit mailing list