View previous topic :: View next topic |
Author |
Message |
jerrry94087 n00b
Joined: 02 Mar 2008 Posts: 41
|
Posted: Mon Jun 16, 2008 8:36 pm Post subject: ifplugd event isn't triggered on boot or unplug/plug |
|
|
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 |
|
|
Princess Nell l33t
Joined: 15 Apr 2005 Posts: 927
|
Posted: Wed Jun 18, 2008 11:55 pm Post subject: |
|
|
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 |
|
|
|