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:
digitalirony 2022-07-15 16:10:42 -07:00 committed by GitHub
parent 09a17a6571
commit 2d737c454f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
;; ;;