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

Bug 317801

Summary: sys-apps/ifplugd apparently starting only on eth0 interface when eth0 and wlan0 are both present
Product: Gentoo Linux Reporter: Federico Pires <fpires82>
Component: [OLD] Core systemAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: minor CC: pchrist, roy, zl29ah
Priority: Normal    
Version: 10.0   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Federico Pires 2010-04-29 17:47:04 UTC
I recently installed ifplugd on my laptop to manage my eth0 and wlan0 interfaces. I'm currently using baselayout-2 and according to einfo it's no longer needed to explicitly enable ifplugd, so this is my current /etc/conf.d/net:

config_eth0="dhcp"
config_wlan0="dhcp"
dhcp_eth0="nontp"
dhcp_wlan0="nontp"
ifplugd_wlan0="--api-mode=wlan"

I'm using wpa_supplicant to handle my wifi networks and both eth0 and wlan0 are enabled on "default" runlevel. 

This is my /etc/rc.conf file:

# Do we allow any started service in the runlevel to satisfy the depedency
# or do we want all of them regardless of state? For example, if net.eth0 
# and net.eth1 are in the default runlevel then with rc_depend_strict="NO"
# both will be started, but services that depend on 'net' will work if either
# one comes up. With rc_depend_strict="YES" we would require them both to    
# come up.                                                                   
rc_depend_strict="NO"                                                        

# rc_hotplug is a list of services that we allow to be hotplugged.
# By default we do not allow hotplugging.                         
# A hotplugged service is one started by a dynamic dev manager when a matching
# hardware device is found.                                                   
# This service is intrinsically included in the boot runlevel.                
# To disable services, prefix with a !                                        
# Example - rc_hotplug="net.wlan !net.*"                                      
# This allows net.wlan and any service not matching net.* to be plugged.      
# Example - rc_hotplug="*"                                                    
# This allows all services to be hotplugged                                   
rc_hotplug="net.wlan0 net.eth0 !bluetooth"

Everything else is set to default options.

*** PROBLEM: The problem is that ifplugd is run for eth0 but NOT for wlan0 on my current setup, and I have to run manually ifplugd --iface=wlan0 for it to work.


emerge --info

Portage 2.1.8.3 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.33-ck-custom i686)
=================================================================                                  
System uname: Linux-2.6.33-ck-custom-i686-Genuine_Intel-R-_CPU_T2300_@_1.66GHz-with-gentoo-2.0.1   
Timestamp of tree: Thu, 29 Apr 2010 01:45:01 +0000                                                 
distcc 3.1 i686-pc-linux-gnu [disabled]                                                            
ccache version 2.4 [enabled]                                                                       
app-shells/bash:     4.0_p37                                                                       
dev-java/java-config: 2.1.10                                                                       
dev-lang/python:     2.6.4-r1                                                                      
dev-util/ccache:     2.4-r7                                                                        
dev-util/cmake:      2.6.4-r3                                                                      
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.6.1-r1                                                                      
sys-apps/sandbox:    1.6-r2                                                                        
sys-devel/autoconf:  2.13, 2.65                                                                    
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1                                            
sys-devel/binutils:  2.18-r3                                                                       
sys-devel/gcc:       4.3.4                                                                         
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6b                                                                        
virtual/os-headers:  2.6.30-r1                                                                     
ACCEPT_KEYWORDS="x86"                                                                              
ACCEPT_LICENSE="* -@EULA"                                                                          
CBUILD="i686-pc-linux-gnu"                                                                         
CFLAGS="-O2 -march=prescott -fomit-frame-pointer"                                                  
CHOST="i686-pc-linux-gnu"                                                                          
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                         
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo"                                                                                         
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer"                                                                                        
DISTDIR="/usr/portage/distfiles"                                                                                                           
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"                                                                                                                                
GENTOO_MIRRORS="http://distfiles.gentoo.org"                                                                                               
LDFLAGS="-Wl,-O1"                                                                                                                          
LINGUAS="en es"                                                                                                                            
MAKEOPTS="-j2"                                                                                                                             
PKGDIR="/usr/portage/packages"                                                                                                             
PORTAGE_CONFIGROOT="/"                                                                                                                     
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"                                                                                        
PORTAGE_TMPDIR="/var/tmp"                                                                                                                  
PORTDIR="/usr/portage"                                                                                                             
PORTDIR_OVERLAY=""                                                                                                                         
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X a52 aac aalib acl acpi alsa apm bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cxx dbus dell dri dts dvd dvdr emboss encode exif fam fbcondecor ffmpeg firefox flac fortran gdbm gif gpm gstreamer hal iconv ipod joystick jpeg kde lame laptop lcms lm_sensors mad mikmod mmx mng modules mp3 mp4 mpeg mplayer msn mudflap mysql ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl plasma png ppds pppd python qt qt3support qt4 quicktime readline reflection sdl semantic-desktop session spell spl sse sse2 ssl ssse3 startup-notification svg sysfs syslog tcpd tiff truetype unicode usb vorbis win32codecs x264 x86 xcb xcomposite xinerama xml xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="synaptics evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS