Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 335494

Summary: sys-apps/openrc-0.6.3: does not run ifplugd for wireless interfaces
Product: Gentoo Linux Reporter: Eugene Shalygin <eugene.shalygin>
Component: [OLD] baselayoutAssignee: OpenRC Team <openrc>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: xmw
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Eugene Shalygin 2010-09-01 10:42:43 UTC
In /lib/rc/ifplugd.sh there is a check for diffeerent types of interfaces for which ifplugd does not work and wireless is in that list. But ifplug perfectly works if I run it manually. man ifplugd says that it works with wireless. So, why it is disable in openrc?

Reproducible: Always

Steps to Reproduce:
1. Configure ifplugd for wireless interface in /etc/conf.d/net
2. Restart wireless interface via /etc/init.d/net.xxxx
Actual Results:  
ifplugd does not run on wireless interfaces. If --verbose option is used, init script reports "ifplugd does not work with wireless"

Expected Results:  
ifplugd started on wireless interfaces
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-09-01 12:57:36 UTC
Which version of openrc do you use? (`emerge -pv openrc`)
Comment 2 Eugene Shalygin 2010-09-01 13:01:09 UTC
[ebuild   R   ] sys-apps/openrc-0.6.2  USE="ncurses pam unicode -debug"
Comment 3 Eugene Shalygin 2010-09-02 18:52:21 UTC
Same in 0.6.3
Comment 4 William Hubbs gentoo-dev 2010-09-04 15:05:21 UTC
I looked at ifplugd briefly (I do not use it myself), and it is described as a daemon which will stop and start ethernet interfaces when the cable is plugged in or unplugged.

Since you don't  plug a cable into a wireless interface, I'm not sure why you want to run ifplugd on wireless interfaces?  Can you give me more information?

Thanks,

William
Comment 5 Eugene Shalygin 2010-09-05 04:52:26 UTC
ifplug reacts also on radio killswitch on/off state. For me this is useful because on my laptop button which turns wifi on/off is close to keyboard and I easyly push it by mistake. 
Now, if I run ifplugd -i wlan0, it restarts net service after I turn wifi on 
Comment 6 William Hubbs gentoo-dev 2010-09-15 00:45:27 UTC
This is fixed in the overlay and will be included in the next release.

Comment 7 William Hubbs gentoo-dev 2010-11-18 21:18:59 UTC
I had to revert the fix for this bug, see bug #345795.
Comment 8 William Hubbs gentoo-dev 2010-11-18 21:20:45 UTC
Please try using sys-apps/netplug instead of sys-apps/ifplugd and report back if that doesn't work for you.

Thanks,

William