Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why is udev trying to bring up my wireless card?
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
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Sun Feb 25, 2007 11:43 pm    Post subject: Why is udev trying to bring up my wireless card? Reply with quote

Hello. I've recently done a bunch of updates on my laptop, and now whenever I start, it loads up the ipw2200 module and tries to bring up eth1 (my wireless card), for some reason. It looks like it might be udev that's doing this.

I only have net.eth0 in my default runlevel (in fact, net.eth1 doesn't even exist). The ipw2200 module is *not* in my /etc/modules.autoload.d/kernel-2.6 file. My /etc/conf.d/net doesn't even mention eth1 (which should be a pretty good indication that I don't want it auto-configured), and it does include the following:
Code:
modules=( "!iwconfig" "!wpa_supplicant" )

... in an attempt to get it to stop doing this.

Why is this going on? It's highly frustrating, especially since now I have to wait for a DHCP request to time out every single time I boot the laptop. Why is Gentoo just assuming I want every single bit of available hardware active at once?

I did find the following in /etc/udev/rules.d/70-persistent-net.rules -
Code:
# PCI device 0x14e4:0x165e (tg3)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:14:c2:e6:07:f9", NAME="eth0"

# PCI device 0x8086:0x4220 (ipw2200)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:15:00:48:0e:52", NAME="eth1"


Okay... So is that where it's happening? How did that get populated in the first place? The comments say I can edit this file, but what would I edit it to? How does the file get generated?

In short, how can I get control of my box again?
Back to top
View user's profile Send private message
guduri
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 230
Location: Ann Arbor, Michigan

PostPosted: Mon Feb 26, 2007 12:13 am    Post subject: Reply with quote

To the file /etc/conf.d/rc edit the line which says

Code:

RC_PLUG_SERVICES=""

to say
Code:

RC_PLUG_SERVICES="!net.eth1"


It is not udev which is causing this. It is hotplug/coldplug stuff.
_________________
Power is about what you can control. Freedom is about what you can unleash.
Back to top
View user's profile Send private message
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Mon Feb 26, 2007 12:47 am    Post subject: Reply with quote

Hm, okay, that makes sense. I notice a line in there for RC_COLDPLUG, as well. I just tried setting that to "no" and everything happens exactly as I'd like - no extra modules are loaded that I haven't explicitly loaded myself via modules.autoload.d or the like.

After some searching around, though, it sounds like when I set that to "no" then udev may not create /dev entries for some hardware. Is that the case, or is this option "safer" than that?
Back to top
View user's profile Send private message
guduri
Apprentice
Apprentice


Joined: 04 Apr 2005
Posts: 230
Location: Ann Arbor, Michigan

PostPosted: Mon Feb 26, 2007 1:18 am    Post subject: Reply with quote

I was having this same problem on my laptop some time age. No matter what I had in my run level both net.eth0 and net.eth1 where being brought up. After some research I found out that there were changes made to baselayout to provide this magic to auto configure the network. At first it was very irritating since I know which network interface to bring up depending on where I was using the laptop. Then I stumbled across the RC_PLUG_SERVICES. Basically it tells the baselayout stuff to layoff net.eth1 if it sees "!net.eth1" on that line and not bring up and dependent stuff.

So, if you just want baselayout to not touch net.eth1 and let the run level stuff work as is, I would go for that addition. If I were you I wont touch the RC_COLDPLUG line and set it to "no" cause this can cause other side effects like you mentioned.
_________________
Power is about what you can control. Freedom is about what you can unleash.
Back to top
View user's profile Send private message
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Mon Feb 26, 2007 1:22 am    Post subject: Reply with quote

Yeah, I understand. I realize this is getting away from "network & security" but ideally I'd really like something that just told hotplug/udev/whatever to not load any modules I haven't explicitly asked for. The RC_PLUG_SERVICES thing like you mentioned will certainly do the trick, but that doesn't address what I now realize is a bigger problem for me, which is that udev is also loading other stuff as well. I'd hate to have some hardware conflict and have my system crash on startup just because hotplug/coldplug/whatever decided that a module needed loading.
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon Feb 26, 2007 1:24 am    Post subject: Reply with quote

Then set:
Code:
RC_HOTPLUG="no"
RC_COLDPLUG="no"
Back to top
View user's profile Send private message
n0n
Guru
Guru


Joined: 13 Jun 2002
Posts: 355

PostPosted: Mon Feb 26, 2007 1:42 am    Post subject: Reply with quote

PaulBredbury wrote:
Then set:
Code:
RC_HOTPLUG="no"
RC_COLDPLUG="no"

So doing so will still allow relevant /dev entries to get created? That's the main thing that I was worried about, 'cause I've seen mentioned in another thread that setting those values like that would cause some entries in /dev to be not created when they should, which can get problematic.
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