]> git.pld-linux.org Git - projects/geninitrd.git/commitdiff
- when comparing pci IDs make sure they will be compared as strings
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Aug 2003 23:42:04 +0000 (23:42 +0000)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 9 Aug 2003 23:42:04 +0000 (23:42 +0000)
svn-id: @1279

geninitrd

index 7eb3d1169cc3677eae9eb2b05b8611c555148ee6..fb1611c8cd19b6c491fa4363426db780105a5bc4 100755 (executable)
--- a/geninitrd
+++ b/geninitrd
@@ -6,7 +6,7 @@
 #
 # based on mkinitrd from RedHat
 
-RCSID='$Id: geninitrd,v 2.35 2003/08/09 23:09:10 baggins Exp $'
+RCSID='$Id: geninitrd,v 2.36 2003/08/09 23:42:04 baggins Exp $'
 PATH=/sbin:$PATH
 export PATH
 
@@ -426,7 +426,9 @@ find_modules_ide() {
        gsub("^ ","");
        if (/^[\t ]*#/)
                next;
-       if ($1 == pciid) {
+       compmod = $1 "";        # make sure comparison type will be string
+                               # cause pci IDs are hexadecimal numeric
+       if (compmod == pciid) {
                module=$2;
                min_kernel=$3;
                max_kernel=$3;
This page took 0.241421 seconds and 4 git commands to generate.