Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net.eth2 attempting to start prematurely [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
coplaniuk
Guru
Guru


Joined: 14 Apr 2004
Posts: 461
Location: Philadelphia, USA

PostPosted: Tue May 01, 2007 2:15 pm    Post subject: net.eth2 attempting to start prematurely [solved] Reply with quote

I'm using the ipw3945 drivers and ipw3945d to get my wireless NIC working (obviously, it's an Intel ipw3945 device). All works well once I get it started. But I want my network interface to load at boot. I have the module (ipw3945) set to autoload in /etc/modules.autoload.d/. The daemon, ipw3945d, is set to load at boot (rc-update add ipw3945d boot), and I have the interface, net.eth2, to load after that. First I tried it as a boot runlevel, then I tried it in the default runlevel. Neither seems to work.

At boot time, when it tries to start net.eth2, it returns an error that interface, eth2, does not exist, then it gives up and drops to the login prompt. Of course after I login, all I have to do is literally type:
Code:

# /etc/init.d/net.eth2 start

And all works perfectly.

My theory is that the ipw3945d is still trying to finish before net.eth2 starts. Is there a way to delay the start of net.eth2 so that I can test that theory? I really want this stuff to start at boot.

Now, obviously, net.eth2 is a wireless device. Is there a problem starting it at boot?
_________________
-- Coplan
~/ Outland - Art, Music, PHP and Hidden Corners of the Web
-{ Embrace Life. Evolve your computer. Emerge Gentoo. }-


Last edited by coplaniuk on Tue May 01, 2007 4:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Lasneyx Iliah
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jul 2006
Posts: 147

PostPosted: Tue May 01, 2007 2:50 pm    Post subject: Reply with quote

You can specify in your net.eth2 file which it needs to start, after what services it must start, a period of time to wait and so on. Something like this:
Code:

depend() {
        need localmount
        after bootmisc hostname
}
...
preup {
         sleep 10 # time in seconds
}


I don't know what exactly you need, but I hope this helps you a bit.

Cheers.
Back to top
View user's profile Send private message
coplaniuk
Guru
Guru


Joined: 14 Apr 2004
Posts: 461
Location: Philadelphia, USA

PostPosted: Tue May 01, 2007 4:41 pm    Post subject: Reply with quote

Discovered a better way to handle...I added the following lines to my /etc/conf.d/net file:
Quote:

sleep_scan_eth2="1"
iwpriv_scan_pre_eth2="host_roaming 2"
iwpriv_scan_post_eth2="host_roaming 0"


Note - my device is eth2. You'll need to change that for your own use.
_________________
-- Coplan
~/ Outland - Art, Music, PHP and Hidden Corners of the Web
-{ Embrace Life. Evolve your computer. Emerge Gentoo. }-
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum