View | Details | Raw Unified | Return to bug 577000
Collapse All | Expand All

(-)a/scripts/setup-kms.sh (-4 / +4 lines)
Lines 29-43 supported_classes="0300" Link Here
29
declare -a device vendor subdevice subvendor class intf
29
declare -a device vendor subdevice subvendor class intf
30
30
31
parse_pciids_from_driver() {
31
parse_pciids_from_driver() {
32
    local pcilist=$1
32
    local pcilist="$1"
33
    local line
33
    local line
34
    local num=0
34
    local num=0
35
    OFS=$IFS
35
    OFS=$IFS
36
    local IFS="
36
    local IFS="
37
"
37
"
38
    for i in $pcilist
38
    # get rid of the wicked "*"
39
    pcilist="${pcilist//\*/X}"
40
    for line in $pcilist
39
    do
41
    do
40
	line=${i//\*/X}
41
	eval $line
42
	eval $line
42
	device[$num]=${d#0000}
43
	device[$num]=${d#0000}
43
	vendor[$num]=${v#0000}
44
	vendor[$num]=${v#0000}
44
- 

Return to bug 577000