View previous topic :: View next topic |
Author |
Message |
valentas n00b
Joined: 20 Mar 2006 Posts: 46
|
Posted: Fri Oct 27, 2006 6:15 am Post subject: Startup scripts with wpa_supplicant + dhcpcd do not work |
|
|
/etc/conf.d/net:
Code: | modules=( "wpa_supplicant" "dhcpcd" )
wpa_supplicant_eth1="-Dwext"
wpa_timeout_eth1=30
config_eth1=( "dhcp" )
dhcpcd_eth1="-HD -t 0" |
/etc/conf.d/wireless:
Code: |
modules=( "wpa_supplicant" )
modules=( "!iwconfig" ) |
/etc/init.d/net.eth1 outputs the following:
Code: | * Caching service dependencies ... [ ok ]
* Starting eth1
* Starting wpa_supplicant on eth1 ... [ ok ]
* Starting wpa_cli on eth1 ... [ ok ]
* Backgrounding ... |
wpa_supplicant connects and authenticates, but dhcpcd never obtains an IP, hostname, etc..
On the contrary, if I start it manually:
Code: | wpa_supplicant -ieth1 -B -c/etc/wpa_supplicant/wpa_supplicant.conf -Dwext &
dhcpcd -t 0 -HD eth1 & |
everything works fine.
What's wrong with configs? How to disable this backgrounding to see what's actually happening? |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
valentas n00b
Joined: 20 Mar 2006 Posts: 46
|
Posted: Thu Nov 02, 2006 4:06 pm Post subject: |
|
|
No luck. |
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
valentas n00b
Joined: 20 Mar 2006 Posts: 46
|
Posted: Thu Nov 02, 2006 11:11 pm Post subject: |
|
|
Code: | wpa_cli status
Selected interface 'eth1'
bssid=00:15:e9:e0:ad:8f
ssid=Namas
pairwise_cipher=WEP-40
group_cipher=WEP-40
key_mgmt=NONE
wpa_state=COMPLETED |
The problem is dhcp as I said. |
|
Back to top |
|
|
<chillum> n00b
Joined: 26 Mar 2005 Posts: 31 Location: Hamburg, Germany
|
Posted: Fri Nov 03, 2006 2:53 am Post subject: |
|
|
you can disable backgrounding with Code: | RC_PARALLEL_STARTUP="no" | in /etc/conf.d/rc |
|
Back to top |
|
|
valentas n00b
Joined: 20 Mar 2006 Posts: 46
|
Posted: Fri Nov 03, 2006 9:35 pm Post subject: |
|
|
Quote: | you can disable backgrounding with
Code:
RC_PARALLEL_STARTUP="no"
in /etc/conf.d/rc |
this one doesn't disable wpa_supplicant's backgrounding...
Code: | * Starting eth1
* Starting wpa_supplicant on eth1 ... [ ok ]
* Starting wpa_cli on eth1 ... [ ok ]
// waits associate_timeout_eth1 seconds
* Failed to configure eth1 in the background [ !! ] |
I guess that dhcpcd is not called at all. Why? |
|
Back to top |
|
|
|