Solved [SOLVED] How to skip wifi bring up during boot?

Hi,

The system boot on my laptop is very slow because it waits until the wifi interface has established a connection, which can take some time. The interface is currently enabled in rc.conf.

Is there a supported way to bring up the network interfaces after X was started, such that it is done while a user logs in?

Thanks
 
Re: How to skip wifi bring up during boot?

In /etc/rc.conf, use DHCP to run it in the background, rather than SYNCDHCP, which waits for a lease before continuing.

Code:
ifconfig_wlan0="WPA DHCP"

Or leave configuration of the wireless interface out of rc.conf entirely, and run it by hand or in a script when you are ready. See Quick Wireless Setup On FreeBSD for a summary of the commands.
 
Re: How to skip wifi bring up during boot?

Actually, wouldn't this work:
Code:
ifconfig_wlan0=NOAUTO WPA DHCP
NOAUTO keeps any interface from being started up at boot time but lets you keep the configuration defined in rc.conf.
You can start up or shut down that interface whenever you want with
Code:
service netif start wlan0
service netif stop wlan0
 
… doesn't now.


https://forums.freebsd.org/threads/44956/#post-250815
Looking at the last thread it might not work now.

Works for me with FreeBSD 14.0-CURRENT.

Wording may be a source of confusion.

As far as I can tell, service netif restart:
  • starts (or restarts) the interfaces
  • does not make the connection where NOAUTO was specified.
Connection does not occur until after a more explicit command, for example

Code:
root@mowa219-gjp4-8570p:/usr/ports # service netif start wlan0
Starting wpa_supplicant.
Starting dhclient.
wlan0: no link ..... got link
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPREQUEST on wlan0 to 255.255.255.255 port 67
DHCPACK from 192.168.1.1
bound to 192.168.1.14 -- renewal in 302400 seconds.
Starting Network: wlan0.
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        …
 
Back
Top