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, Oct 10, 4:19 PM
Unknown Object (File)
Fri, Oct 10, 4:19 PM
Unknown Object (File)
Fri, Oct 10, 4:19 PM
Unknown Object (File)
Fri, Oct 10, 4:18 PM
Unknown Object (File)
Fri, Oct 10, 10:29 AM
Unknown Object (File)
Wed, Oct 8, 5:45 AM
Unknown Object (File)
Fri, Oct 3, 1:04 PM
Unknown Object (File)
Thu, Oct 2, 7:24 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