SVN: geninitrd/trunk/mod-sata.sh

arekm arekm at pld-linux.org
Thu Aug 25 19:53:53 CEST 2011


Author: arekm
Date: Thu Aug 25 19:53:53 2011
New Revision: 12335

Modified:
   geninitrd/trunk/mod-sata.sh
Log:
Left side expands to decimal while right side was in hex. Convert right side to decimal.

Modified: geninitrd/trunk/mod-sata.sh
==============================================================================
--- geninitrd/trunk/mod-sata.sh	(original)
+++ geninitrd/trunk/mod-sata.sh	Thu Aug 25 19:53:53 2011
@@ -33,7 +33,7 @@
 	local PCI_ANY_ID=0x0000ffff pci_module vendor device subvendor subdevice class class_mask driver_data
 	while read pci_module vendor device subvendor subdevice class class_mask driver_data; do
 		# match class
-		[ "$(($req_class & $class_mask))" = "$class" ] || continue
+		[ "$(($req_class & $class_mask))" = "$(($class))" ] || continue
 		# match vendor
 		[ "$1" = "$vendor" ] || continue
 		# match device, allow PCI_ANY_ID


More information about the pld-cvs-commit mailing list