From 2d737c454f00718ee5afbed9140cf09a0acf9066 Mon Sep 17 00:00:00 2001 From: digitalirony Date: Fri, 15 Jul 2022 16:10:42 -0700 Subject: [PATCH] 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 --- lib/InterfaceUtils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/InterfaceUtils.sh b/lib/InterfaceUtils.sh index 8ed1da8..77795e3 100755 --- a/lib/InterfaceUtils.sh +++ b/lib/InterfaceUtils.sh @@ -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/^ //')" ;; "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." fi ;;