Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ifplugd event isn't triggered on boot or unplug/plug
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
jerrry94087
n00b
n00b


Joined: 02 Mar 2008
Posts: 41

PostPosted: Mon Jun 16, 2008 8:36 pm    Post subject: ifplugd event isn't triggered on boot or unplug/plug Reply with quote

I have wireless card Airlink 101.

When I manually run '/etc/init.d/net.wlan0 start' it goes up ok.
But when system boots ifplugd event isn't triggered and dhcp isn't started.
Also when I unplug it and then plug it in network interface isn't started.

Seems like ifplugd is stopped when I unplug the card out and then plug it back in.

Is anything wrong with my configuration below?
What it is supposed to be for such a simple basic case of just one wireless card with DHCP?
Do I even need to run ifplugd or wpa_supplicant is supposed to start DHCP?
Also why "down" event is never triggered? I found this out by debugging.

My configuration (/etc/config.d/net):
modules=( "ifconfig" "wpa_supplicant" )
#modules=( "ifconfig" )
wpa_supplicant_wlan0="-Dndiswrapper"
wpa_timeout_wlan0=60
iface_wlan0="inet dhcp"
config_wlan0=("dhcp")
dhcpcd_wlan0="-t 180" # Timeout after 180 seconds
ifplugd_wlan0="--api-mode=wlan --run=/etc/ifplugd/ifplugd.action"

Also /etc/ifplugd/ifplugd.action was modified to add DHCP startup:
...
if [ -x "${EXEC}" ]
then
${EXEC} ${ARGS}
# yuri: start/stop DHCP client when network goes up/down
if [ "$2" = "up" ]; then
exec /sbin/dhcpcd -d -t 10 $1
fi
if [ "$2" = "down" ]; then
/sbin/dhcpcd -k $1
fi
echo "ifplugd is invoked(3): a1=$1 a2=$2" >> /ifplugd.log
exit 0
else
echo "not configured" >>/ifplugd.log
logger -t ifplugd.action "Error: Couldn't configure $1, no ${EXEC} !"
exit 1
fi
....
Back to top
View user's profile Send private message
Princess Nell
l33t
l33t


Joined: 15 Apr 2005
Posts: 927

PostPosted: Wed Jun 18, 2008 11:55 pm    Post subject: Reply with quote

Is your system current? Then you shouldn't have to configure anything special to get this to work.

I *think* you can drop the "ifconfig" part in the modules line.

I don't think there is an iface_ statement, so you can lose that.

Also try without the ifplugd_ line, and use the unmodified ifplugd.action.
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