LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Wireless Networking (https://www.linuxquestions.org/questions/linux-wireless-networking-41/)
-   -   wpa_supplicant runs from rc.local script - is this the best way (https://www.linuxquestions.org/questions/linux-wireless-networking-41/wpa_supplicant-runs-from-rc-local-script-is-this-the-best-way-667376/)

__spc__ 09-03-2008 03:47 PM

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

pwc101 09-03-2008 04:05 PM

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.

__spc__ 09-05-2008 02:32 PM

Quote:

Originally Posted by pwc101 (Post 3268717)
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!


All times are GMT -5. The time now is 05:57 AM.