Results 1 to 8 of 8
I think I am running Gentoo though I have a vanilla kernel.
Whenever I boot up my computer, it starts ath0 and eth0 (the wireless card and the ethernet interface). ...
- 02-15-2007 #1Just Joined!
- Join Date
- Nov 2006
- Posts
- 57
How to stop eth0 interface on boot before dhcpcd lease
I think I am running Gentoo though I have a vanilla kernel.
Whenever I boot up my computer, it starts ath0 and eth0 (the wireless card and the ethernet interface). How do I stop the eth0 from starting? Basically I want to do "ifconfig eth0 down" at boot before it starts connecting to anything automatically. I tried rc-update del net.eth0 default or whatever, and there are no net eth0 files in /etc/conf.d. I dunno about the files in /etc/init.d/net.ath0 and /etc/init.d/net.eth0 and /etc/init.d/net.lo. Those are pretty long files. But I want to keep the ath0 up.
So, how would I go about doing this?
Thanks in advance.
- 02-16-2007 #2
Have you tried rc-update del net.eth0 ?
/etc/init.d/net.*th0 are init scripts used during boot, you can change them to customize booting.Put your hand in an oven for a minute and it will be like an hour, sit beside a beautiful woman for an hour and it will be like a minute, that is relativity. --Albert Einstein
Linux User #425940
Don't PM me with questions, instead post in the forums
- 02-16-2007 #3Just Joined!
- Join Date
- Nov 2006
- Posts
- 57
I did do rc-update del net.eth0. I wrote ath0 in my original post by accident. I want to enable ath0 but disable eth0.
I'm in the I have no /etc/init.d/net.eth0 file, but it's long and I have no idea what all of it means. I just installed this a few days ago.
- 02-16-2007 #4
eth0 will be hotplugged by udev, but there is a way to stop this.
You need to edit /etc/conf.d/rc and look for this:
and add this in the quotes:Code:RC_PLUG_SERVICES=""
so that it looks like this:Code:!net.eth0
You can do that for all of the interfaces that you don't want loaded. That file is very well documented, so please read carefully.Code:RC_PLUG_SERVICES="!net.eth0"
To get net.ath0 back, type this:
If you deleted your net.ath0 file in /etc/init.d/, here is the way to get it back:Code:rc-update add net.ath0 default rc-update del net.eth0 default
Code:ln -s /etc/init.d/net.lo /etc/init.d/net.ath0
- 02-16-2007 #5Just Joined!
- Join Date
- Nov 2006
- Posts
- 57
Thanks man. You're awesome. Cool
- 02-16-2007 #6
You are welcome. I am just here to help.
- 02-21-2007 #7Just Joined!
- Join Date
- Feb 2007
- Posts
- 4
awsome thanks this one has had me stumped for a little while, tried everything from patches from bugzilla to looking at rewriting the driver. Its always something simple.
- 02-21-2007 #8
Originally Posted by sentralorigin
You will probably find that this file is a symlink to net.lo try running:
It should show something like:Code:ls -FGg /etc/init.d/net.eth0
at the end of the returned line. If this is the case, it is just a symlink to the net.lo file and can be deleted. If it needs to be recreated, then you can do so with:net.eth0 -> net.lo
Code:ln -s net.lo net.eth0
"I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327


Reply With Quote
