]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- pcimap not used when lspci invoked with -n
authorElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Jan 2011 11:37:47 +0000 (11:37 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Fri, 14 Jan 2011 11:37:47 +0000 (11:37 +0000)
svn-id: @12054

mod-sata.sh

index dc196def0914be3d86d93f62d24f7bf9870dc083..570922679cf0ea6c9323d66fbaf4b062e91ad467 100644 (file)
@@ -17,7 +17,7 @@ find_modules_by_class() {
                return
        fi
 
-       set -- $(/sbin/lspci -n -p $pcimap | awk -vclass=$class '$2 == class":" {split($3, p, ":"); printf("0x0000%s 0x0000%s\n", p[1], p[2])}')
+       set -- $(/sbin/lspci -n | awk -vclass=$class '$2 == class":" {split($3, p, ":"); printf("0x0000%s 0x0000%s\n", p[1], p[2])}')
        awk -vvendor=$1 -vdevice=$2 '$2 == vendor && $3 == device {print $1}' $pcimap
 }
 
This page took 0.165373 seconds and 4 git commands to generate.