Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I use wpa_supplicant to configure the wireless connection. Now I have a problem in that the network service starts before wpa_supplicant so this happens:

Bringing up interface wlan0:  
Determining IP information for wlan0... failed; no link present.  Check cable?

When I after that restart the network service the wireless connection then gets an IP and works.

I was reading about altering the start order by changing the the start order number in the respective init script. This is it in wpa_suplicant:

# chkconfig:   - 23 88

And this is it in network:

# chkconfig: 2345 10 90

So if I understand correctly I could change the 23 to 9 and it would start before. Is it a good idea?

share|improve this question
1  
Sounds reasonable to me; you can always try, and change it back if it breaks something else. –  tink Nov 6 '12 at 1:44
1  
What version of CentOS? CentOS 6 has upstart which can handle this much more easily. –  jordanm Nov 6 '12 at 2:08
    
@jordanm Centos 6 I will search for it. Could you post an answer about it? –  Clodoaldo Nov 6 '12 at 11:57

1 Answer 1

I tried to change the boot priority but it didn't work. There is a bug:

http://bugs.centos.org/view.php?id=5794

So the solution was to give up on dhcp and set the address static in ifcfg-wlan0

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.