Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
wpa_supplicant and ifplugd
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
Enlighter
n00b
n00b


Joined: 20 Oct 2002
Posts: 29
Location: Stuttgart, Germany

PostPosted: Fri Feb 17, 2006 1:01 pm    Post subject: wpa_supplicant and ifplugd Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Feb 17, 2006 1:17 pm    Post subject: Reply with quote

Use baselayout-1.12.0_pre16 - wpa_supplicant can restart net.eth0 giving you that ability
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Enlighter
n00b
n00b


Joined: 20 Oct 2002
Posts: 29
Location: Stuttgart, Germany

PostPosted: Fri Feb 17, 2006 5:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Feb 17, 2006 5:48 pm    Post subject: Reply with quote

No :)

It should be automatic - you just have to do something like this

Code:

modules=( "wpa_supplicant" )
wpa_supplicant_eth0="-Dwext"

_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
paramthegreat
Tux's lil' helper
Tux's lil' helper


Joined: 12 Aug 2002
Posts: 78

PostPosted: Wed Mar 15, 2006 5:55 pm    Post subject: no luck Reply with quote

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
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