LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 09-14-2005, 03:09 AM   #1
SmileZero
LQ Newbie
 
Registered: Sep 2005
Posts: 1

Rep: Reputation: 0
Question How to Starting WPA_Supplicant on boot?


I'm using Fedora Core 4, after playing hours and hours with the Kernels, ndiswrapper and wpa_supplicant, I can make my DWL-G510 up and running. However I always need to login as root to start the wpa_supplicant to connect to the router. How do I automate this?
 
Old 09-14-2005, 09:32 AM   #2
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Add the full path name of the command and any options to your rc.local script.

Made-up example:

/usr/local/wpa_supplicant -Bw -c/etc/wpa_supplicant.conf -iwlan0
 
Old 10-01-2005, 08:23 AM   #3
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
How about in slackware 10.2?

I see the script of wpa_supplicant is added to rc.wireless, but it turns out that dhcpd won't get an IP for my wireless adapter after being loaded during startup.

I need to issue command (dhcpcd wlan0) manually before surfing.

Thanks.
 
Old 10-01-2005, 09:26 AM   #4
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
There's a config file, which I can't think of off the top of my head, that specifies dhcp on boot. If the authentication process is getting in the way of the I/F picking up an IP, you can probably fix it by putting the dhcp request in rc.local.

/sbin/dhcpcd wlan0 &
 
Old 10-01-2005, 10:43 PM   #5
kaon
Member
 
Registered: Dec 2003
Location: Hong Kong SAR
Distribution: Slackware 9.1, 10.x, slackware-current
Posts: 186

Rep: Reputation: 30
To 2Gnu:

Sometimes wpa_supplicant is not loaded at startup and I have run wpa_supplicant together with dhcpcd wlan0, therefore I have to do it manually, which is boring and dull.

I know very little about bash script.

Any method to fix it up?
 
Old 10-01-2005, 11:21 PM   #6
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
You can put both the wpa_supplicant call and the dhcp request in rc.local. You can even put a wait in between the two commands to give the supplicant time to authenticate, if you need to.

First, you'd need to find out where wpa_supplicant is run now and comment out that line.

Let's say it's in /etc/rc.d/rc.inet1 (Just an example - I have no idea where it is.) Edit that file and put a # in front of the line with wpa_supplicant.

Then, edit rc.local to include something like:
/sbin wpa_supplicant (plus whatever options you need for your setup)
sleep 5
/sbin/dhcpcd wlan0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wpa_supplicant (AGAIN) gbergeson Linux - Laptop and Netbook 10 08-03-2005 08:28 AM
starting wpa_supplicant at boot mdj Linux - Wireless Networking 1 03-03-2005 10:41 PM
driverloader and wpa_supplicant nraponi Linux - Wireless Networking 3 01-22-2005 11:48 AM
Won't Boot - Starting Printer Service - Starting CUPS jeansond Linux - Newbie 0 10-11-2004 06:39 PM
WPA_Supplicant Fraudulent Linux - Wireless Networking 0 10-04-2004 07:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 02:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration