Update InterfaceUtils.sh
We stripped the hex markers in line 108, so we shouldn't be comparing for them in like 127, but we want it in the 2nd part for formatting with %d
This commit is contained in:
parent
09a17a6571
commit
2d737c454f
|
@ -124,7 +124,7 @@ function interface_chipset() {
|
||||||
InterfaceChipset="$(lspci -d $InterfaceHardwareID | cut -f3- -d ":" | sed 's/Wireless LAN Controller //g;s/ Network Connection//g;s/ Wireless Adapter//;s/^ //')"
|
InterfaceChipset="$(lspci -d $InterfaceHardwareID | cut -f3- -d ":" | sed 's/Wireless LAN Controller //g;s/ Network Connection//g;s/ Wireless Adapter//;s/^ //')"
|
||||||
;;
|
;;
|
||||||
"sdio")
|
"sdio")
|
||||||
if [[ "${InterfaceHardwareID,,}" == "0x02d0"* ]]; then InterfaceChipset=$(printf "Broadcom %d" ${InterfaceHardwareID:7})
|
if [[ "${InterfaceHardwareID,,}" == "02d0"* ]]; then InterfaceChipset=$(printf "Broadcom %d" 0x${InterfaceHardwareID:5})
|
||||||
else InterfaceChipset="Unknown chipset for SDIO device."
|
else InterfaceChipset="Unknown chipset for SDIO device."
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue