aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiva Mahadevan <siva@FreeBSD.org>2026-07-09 15:26:32 +0000
committerSiva Mahadevan <siva@FreeBSD.org>2026-07-13 21:09:43 +0000
commitc4b0b13cadac46b7c2cdfeeedeffa596c62568fa (patch)
tree253ab81f3f7a4bf759c429cd6549aeda4fc83baa
parent878bf20fa56a1785b00f6ec6fe3af240c585c2f5 (diff)
bsdinstall/netconfig: use a better heuristic for wlan dev desc
For devices like the rtw88, they will show up in `ifconfig -l` as rtw880, rtw881, etc. We want to query the rtw88.0 and rtw88.1 sysctl respectively, not rtw.880. Chances are that there aren't more than 9 wlan devices using the same driver. Use a better heuristic to get the device description. Reviewed by: bz MFC after: 3 days Sponsored by: The FreeBSD Foundation
-rwxr-xr-xusr.sbin/bsdinstall/scripts/netconfig2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/netconfig b/usr.sbin/bsdinstall/scripts/netconfig
index 0f23ae134cb6..ea005430798d 100755
--- a/usr.sbin/bsdinstall/scripts/netconfig
+++ b/usr.sbin/bsdinstall/scripts/netconfig
@@ -61,7 +61,7 @@ is_wireless_if() {
}
for IF in $INTERFACES; do
- DESC=`sysctl -n dev.$(echo $IF | sed -E 's/([[:alpha:]]*)([[:digit:]]*)/\1.\2/g').%desc`
+ DESC=`sysctl -n dev.$(echo $IF | sed -E 's/([[:alnum:]]*)([[:digit:]])/\1.\2/').%desc`
BSDDIALOG_ITEMS="$BSDDIALOG_ITEMS $IF \"$DESC\""
done