Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
openrc and USB network interfaces
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Kobboi
l33t
l33t


Joined: 29 Jul 2005
Posts: 672
Location: Belgium

PostPosted: Thu Nov 01, 2012 12:52 pm    Post subject: openrc and USB network interfaces Reply with quote

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
View user's profile Send private message
zerocool_australia
n00b
n00b


Joined: 31 Jul 2003
Posts: 58

PostPosted: Sat Nov 17, 2012 2:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Nov 17, 2012 6:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum