Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-24-2014, 12:30 PM
|
#1
|
LQ Newbie
Registered: Jan 2010
Posts: 26
Rep:
|
Wi-fi Setup
Hi,
Centos 6.5
I eventually got Wifi working, but when I restart, it doesn't work until I run:
wpa_supplicant -d wext -i wlan0 -c /etc/wpa_supplicant.conf -B
Then I do a service network restart.
So I made a file that says
wpa_supplicant -d wext -i wlan0 -c /etc/wpa_supplicant.conf -B
service network restart
Then I chmod +x on it. How can I run it automatically when the system restarts?
If there is a better way of achieving what I want to achieve, please do let me know.
Thanks!!!
ps. I also did chkconfig 'wpa_supplicant on' but wi-fi still doesn't work after restart unless I do the commands above.
Last edited by seabro; 08-24-2014 at 12:32 PM.
|
|
|
08-24-2014, 02:13 PM
|
#2
|
Senior Member
Registered: Dec 2009
Posts: 1,387
Rep:
|
Quote:
How can I run it automatically when the system restarts?
|
that may depend on your distro and desktop environment. try searching online based on that.
edit:sorry i didn't notice that you are on centos.
Last edited by yooy; 08-25-2014 at 06:16 AM.
|
|
|
08-24-2014, 02:21 PM
|
#3
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
In RHEL 6/CentOS 6, if you are using NetworkManager (and you likely are), you need to be sure that "Connect Automatically" is checked in the adapter's setting applet.
|
|
|
08-25-2014, 10:26 AM
|
#4
|
LQ Newbie
Registered: Jan 2010
Posts: 26
Original Poster
Rep:
|
Quote:
Originally Posted by GaWdLy
In RHEL 6/CentOS 6, if you are using NetworkManager (and you likely are), you need to be sure that "Connect Automatically" is checked in the adapter's setting applet.
|
thanks for the responses people. I am in non-graphical mode so I assume I won't see an applet?
I just need a bash script to run at boot time but the contents of /etc/rc.d/init.d confused me. Whats the easiest way to run my script automatically?
|
|
|
08-25-2014, 10:29 AM
|
#5
|
Member
Registered: Feb 2013
Location: San Jose, CA
Distribution: RHEL/CentOS/Fedora
Posts: 457
Rep:
|
No, you do not need a script for this. If it's just not coming up after boot, be sure that /etc/sysconfig/network-script/ifconfig-[devname] contains the flag 'ONBOOT=yes'. The device should come up without needing to be initialized by hand.
|
|
|
08-25-2014, 10:37 AM
|
#6
|
LQ Newbie
Registered: Jan 2010
Posts: 26
Original Poster
Rep:
|
Oops I found out how to do it. I put the command in /etc/rc.local
Thanks all the same people.
|
|
|
All times are GMT -5. The time now is 08:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|