View previous topic :: View next topic |
Author |
Message |
Enlighter n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Oct 2002 Posts: 29 Location: Stuttgart, Germany
|
Posted: Fri Feb 17, 2006 1:01 pm Post subject: wpa_supplicant and ifplugd |
|
|
Hi,
yesterday I had to reinstall my laptop, because all files were seriously damaged after an power loss. Currentyl I try to reinstall my wlan as it was before (I started /etc/init.d/wpa_supplicant and ifplugd to get an automatic (re-)connect). But now /etc/init.d/wpa_supplicant is gone but I don't want to use /etc/conf.d/wireless, because I'm loosing the feature to automatically connect to any wlan I want to (especially the wpa encrypted ones).
Before this accidend happent it was like this:
* wpa_supplicant found a known essid and associated with it
* ifplugd detected the association and started the network device
today, using /etc/conf.d/wireless it works like this (correct me if I'm wrong):
* /etc/init.d/net.eth0 starts wpa_supplicant on eth0 and runs dhcpcd on eth0.
* If i disable my wlan or iif I reconnect or connect to another AP nobody detects this so I have to manually restart /etc/init.d/eth0
I want my old behavour back, but how? Do I understand /etc/conf.d/wireless right? Is there another way to achiev my gold than using the old (and not anymore existing) /etc/init.d/wpa_supplicant script?
Thanx for the help!
Bye, Michael |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Enlighter n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 20 Oct 2002 Posts: 29 Location: Stuttgart, Germany
|
Posted: Fri Feb 17, 2006 5:34 pm Post subject: |
|
|
Hi,
thanx for your answer! Do you mean the pre- and postassociate functions in /etc/conf.d/wireless? I don't know how wpa_supplicant can do this directly.
bye,
Michael |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
UberLord Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/16007251014200867ea775c.gif)
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
paramthegreat Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/The Matrix/movie_the_matrix_neo_2.gif)
Joined: 12 Aug 2002 Posts: 78
|
Posted: Wed Mar 15, 2006 5:55 pm Post subject: no luck |
|
|
i have been struggling with this for the past one week. i have a wired interface eth0 and wireless interface via pcmcia card wlan0. i have hotplug daemon controlling detecting the presence of the card. i am using wpa_supplicant to authenticate my wireless connection. but i have been needing to manually start net.wlan0 to get a dhcp ip. my net.wlan0 is linked to net.lo.
now is there a way i can use ifplugd or anything else such that, when i have a cable connected to my ethernet jack, eth0 comes up and when i put in my wireless card wlan0 gets started. currently ifplugd is assigning ip when eth0 comes up but not when wlan0 should come up. my /etc/conf.d/net looks like your code below.
UberLord wrote: | No
It should be automatic - you just have to do something like this
Code: |
modules=( "wpa_supplicant" )
wpa_supplicant_eth0="-Dwext"
|
|
and my /etc/conf.d/ifplugd looks like:
Code: |
INTERFACES="eth0 wlan0"
WIRELESS_INTERFACES="yes"
AUTO="yes"
BEEP="yes"
IGNORE_FAIL="yes"
IGNORE_FAIL_POSITIVE="no"
IGNORE_RETVAL="yes"
POLL_TIME="1"
DELAY_UP="0"
DELAY_DOWN="0"
API_MODE="auto"
SHUTDOWN="no"
WAIT_ON_FORK="no"
MONITOR="yes"
ARGS=""
MONITOR_wlan0="yes"
DELAY_UP_wlan0="0"
DELAY_DOWN_wlan0="0"
|
can anyone help pls. i am pulling my hair out over this _________________ Parminder
guptaparminder at yahoo dot com |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|