View previous topic :: View next topic |
Author |
Message |
n0n Guru
Joined: 13 Jun 2002 Posts: 355
|
Posted: Sun Feb 25, 2007 11:43 pm Post subject: Why is udev trying to bring up my wireless card? |
|
|
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 |
|
|
guduri Apprentice
Joined: 04 Apr 2005 Posts: 230 Location: Ann Arbor, Michigan
|
Posted: Mon Feb 26, 2007 12:13 am Post subject: |
|
|
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 |
|
|
n0n Guru
Joined: 13 Jun 2002 Posts: 355
|
Posted: Mon Feb 26, 2007 12:47 am Post subject: |
|
|
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 |
|
|
guduri Apprentice
Joined: 04 Apr 2005 Posts: 230 Location: Ann Arbor, Michigan
|
Posted: Mon Feb 26, 2007 1:18 am Post subject: |
|
|
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 |
|
|
n0n Guru
Joined: 13 Jun 2002 Posts: 355
|
Posted: Mon Feb 26, 2007 1:22 am Post subject: |
|
|
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 |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Mon Feb 26, 2007 1:24 am Post subject: |
|
|
Then set:
Code: | RC_HOTPLUG="no"
RC_COLDPLUG="no" |
|
|
Back to top |
|
|
n0n Guru
Joined: 13 Jun 2002 Posts: 355
|
Posted: Mon Feb 26, 2007 1:42 am Post subject: |
|
|
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 |
|
|
|