LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-03-2008, 03:47 PM   #1
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Rep: Reputation: 30
Question wpa_supplicant runs from rc.local script - is this the best way


Finally! WiFi with WPA-PSK - the last element to migrating my laptop from XP to Linux!

A question though.

My WiFi is configured via rc.inet1.conf and wpa_supplicant.conf.

wpa_supplicant starts from my rc.local script:
Code:
#!/bin/sh
#
# /etc/rc.d/rc.local:  Local system initialization script.
#
# Put any local startup commands in here.  Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.

/usr/bin/lisa
wpa_supplicant -ieth1 -c/etc/wpa_supplicant.conf -B
dhcpcd eth1
This doesn't strike me as being at all elegant! How best should I start my WiFi at boot-time?

Thanks for any pointers....
 
Old 09-03-2008, 04:05 PM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
As far as I'm aware, there's nothing wrong with rc.local - I find it easier to use than trying to find an appropriate script to add this sort of stuff into. In addition, it's the last script called in the /etc/rc.d directory, so everything should be set up that it should need to use.

I think that's the reason rc.local exists, for little jobs like that.

Last edited by pwc101; 09-03-2008 at 04:07 PM. Reason: font fit
 
Old 09-05-2008, 02:32 PM   #3
__spc__
Member
 
Registered: Feb 2006
Location: Bridgend, Wales
Distribution: Kubuntu 10.04.25 (Feb 2011)
Posts: 172

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by pwc101 View Post
As far as I'm aware, there's nothing wrong with rc.local - I find it easier to use than trying to find an appropriate script to add this sort of stuff into. In addition, it's the last script called in the /etc/rc.d directory, so everything should be set up that it should need to use.

I think that's the reason rc.local exists, for little jobs like that.
OK, thanks for that - I just couldn't help but think that network adaptor recognition and IP assignment should be done a little more slickly!
 
  


Reply



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
ssh - using variables in call to start remote script from local script babag Linux - Networking 2 06-03-2008 04:50 PM
Shell Script: want to insert values in database when update script runs ring Programming 2 10-25-2007 10:48 PM
clamd upgradation in remote mach through local mac by script to be run on local mach Narayandutt Programming 3 11-29-2006 10:00 AM
shell script to compare filese b/w local and remote and delete files from local serve dsids Linux - Networking 9 08-23-2006 07:20 AM
creating shell script that executes as root regardless of who runs the script? m3kgt Linux - General 13 06-04-2004 10:23 PM

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

All times are GMT -5. The time now is 04:16 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