Bug 661 - misplaced assignment in pci script
: misplaced assignment in pci script
Status: VERIFIED FIXED
: IPW2200
__UNSPECIFIED__
: 1.0.3
: __UNSPECIFIED__ All
: P2 minor
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-05-16 08:01 by
Modified: 2005-05-19 04:16 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-05-16 08:01:33
The pci script identified my 2915ABG as a 2200BG. In CHECK_ARG the DRIVER
variable held the previous value instead of the current one. Here's my patch -u:

--- pci-orig    2005-04-08 23:36:51.000000000 +0200
+++ pci 2005-05-16 16:43:12.000000000 +0200
@@ -74,13 +74,12 @@
 DEVICE_2200_22="0x8086 0x4224 PCI_ANY_ID PCI_ANY_ID 2915ABG"

 function check_arg {
+       DRIVER=${7}
        PARM=$((${2}+2))
        PARM=${!PARM}
        [ ! -e ${1} ] && return 0
        [ "${PARM}" == "PCI_ANY_ID" ] && return 0
        [ `cat ${1}` = ${PARM} ] && return 0
-       PARM=$((5+2))
-       DRIVER=${!PARM}
        return 1
 }
------- Comment #1 From 2005-05-16 23:35:22 -------
Applied, thanks!
------- Comment #2 From 2005-05-17 12:41:19 -------
Merged for 1.0.4
------- Comment #3 From 2005-05-19 04:16:35 -------
Verified the merged patch is in 1.0.4.