View previous topic :: View next topic |
Author |
Message |
Kobboi l33t
Joined: 29 Jul 2005 Posts: 672 Location: Belgium
|
Posted: Thu Nov 01, 2012 12:52 pm Post subject: openrc and USB network interfaces |
|
|
On my system, wlan0 is a USB pluggable wireless network interface. Its init script is started in the boot runlevel. If I disconnect the USB device and plug it back in, should my wireless connectivity be restored? Currently, it seems I have to force it by restarting the init script (openrc-0.11.2) |
|
Back to top |
|
|
zerocool_australia n00b
Joined: 31 Jul 2003 Posts: 58
|
Posted: Sat Nov 17, 2012 2:35 pm Post subject: |
|
|
By default, no, it probably won't reconnect. There are two ways to make this happen, I believe.
If you emerge ifplugd, it will be used by default when bringing up network interfaces. It will monitor link status and keep dhcpcd running, etc when physical links are removed. But being as you are removing the entire interface, it may not be enough.
What you may also need to do is edit /etc/rc.conf and add
Code: | rc_hotplug="net.wlan0" |
THat will allow udev to hotplug the service when the device appears and automatically start the init script. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54234 Location: 56N 3W
|
Posted: Sat Nov 17, 2012 6:00 pm Post subject: |
|
|
Kobboi,
No network devices other than net.lo should be in the boot runlevel.
Why do you think you need net.wlan0 there? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|