Page MenuHomeFreeBSD

bsdinstall: wlanconfig: make sure the interface is up before scanning
ClosedPublic

Authored by bz on Jul 14 2025, 7:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 7, 6:01 PM
Unknown Object (File)
Fri, Aug 7, 3:55 PM
Unknown Object (File)
Thu, Aug 6, 7:37 PM
Unknown Object (File)
Thu, Aug 6, 9:42 AM
Unknown Object (File)
Thu, Aug 6, 3:44 AM
Unknown Object (File)
Wed, Aug 5, 4:41 AM
Unknown Object (File)
Wed, Jul 29, 1:53 PM
Unknown Object (File)
Mon, Jul 27, 11:48 AM

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

bz requested review of this revision.Jul 14 2025, 7:44 PM
thj added a subscriber: thj.

I think starting wpa_supplicant will result in the interface being brought up, but I still think this is a good action to do explicitly.

This revision is now accepted and ready to land.Jul 15 2025, 12:01 PM

Yes. There were times when I was just running the script and wpa_supplicant was running already but the interface was "down" and then things failed horribly.
Unlikely to happen in the course of the normal auto install but with this shell script I am better save than sorry.

I should probably amend the commit message with the case I triggered this so it's clear as-to why?

emaste added a subscriber: emaste.

I should probably amend the commit message with the case I triggered this so it's clear as-to why?

Sounds good. Maybe even as a comment before the ifconfig $WLAN_IFACE up call.

Add comment before the ew line as suggested by @emaste.

This revision now requires review to proceed.Jul 15 2025, 6:11 PM
This revision is now accepted and ready to land.Jul 15 2025, 6:15 PM