| View previous topic :: View next topic |
| Author |
Message |
Boccaccio Apprentice

Joined: 19 Jul 2005 Posts: 183
|
Posted: Sat Aug 12, 2006 7:17 am Post subject: net.eth0 started against my will [solved] |
|
|
Hi everybody!
In my computer there is an ethernet card and a wlan card. I just use the latter for connecting to the internet (so I don't need wires through the house). Until now everything worked fine, but now the following problem occured:
Some time ago (I guess after a baselayout update) during the boot process I was told about some device initiated service starting net.eth0, but without any success. Since this was no big problem for me, I just ignored it. But after the most recent baselayout update to 1.12.4-r2 during the boot process, my computer tries to configure the card via dhcp which takes some time until it recognizes that there is no dhcp server reachable. Since this lengthens the boot process quite a lot, I want to ask how I can get rid of this problem.
If you need any more config files etc, just let me know.
Last edited by Boccaccio on Sat Aug 12, 2006 8:08 am; edited 1 time in total |
|
| Back to top |
|
 |
flash49 Apprentice


Joined: 12 Feb 2005 Posts: 233
|
Posted: Sat Aug 12, 2006 7:30 am Post subject: Re: net.eth0 started against my will |
|
|
| I had the same Problem and fixed it by emerging netplug. This way net.eth0 is only started if a cable is pluged in. |
|
| Back to top |
|
 |
grenwald n00b

Joined: 05 Aug 2006 Posts: 21 Location: Clermont-Ferrand / France
|
Posted: Sat Aug 12, 2006 7:43 am Post subject: |
|
|
If you never use the device net.eth0, you can disable its starting at boot with the command
| Code: | | rc-update del net.eth0 default |
This way, if you want to use it, you can start the device only when you need it... _________________ there's only 10 types of people
Those who understand binary and the others |
|
| Back to top |
|
 |
Boccaccio Apprentice

Joined: 19 Jul 2005 Posts: 183
|
Posted: Sat Aug 12, 2006 7:50 am Post subject: |
|
|
Well rc-update does not help, since
| Code: |
localhost init.d # rc-update del net.eth0
* 'net.eth0' not found in any of the specified runlevels
|
I emerged netplug and am just waiting for some time to reboot. |
|
| Back to top |
|
 |
flash49 Apprentice


Joined: 12 Feb 2005 Posts: 233
|
Posted: Sat Aug 12, 2006 7:59 am Post subject: |
|
|
| grenwald wrote: | If you never use the device net.eth0, you can disable its starting at boot with the command
| Code: | | rc-update del net.eth0 default |
This way, if you want to use it, you can start the device only when you need it... |
This does not work if you use coldplug or hotplug since these are the ones starting net.et0 even if you disabled autostart of the services. You can also disable hotpluging for net.* in "/etc/conf.d/rc" :
| Code: | # Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES is a
# list of services that are matched in order, either allowing or not. By
# default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be yes
# anyway.
# Example - RC_PLUG_SERVICES="net.wlan !net.*"
# This allows net.wlan and any service not matching net.* to be plugged. |
|
|
| Back to top |
|
 |
Boccaccio Apprentice

Joined: 19 Jul 2005 Posts: 183
|
Posted: Sat Aug 12, 2006 8:07 am Post subject: |
|
|
Ok, so the final solution was not to emerge netplug but just to make the change to /etc/conf.d/rc.
Thanks alot for your help! |
|
| Back to top |
|
 |
roblov Tux's lil' helper


Joined: 06 Oct 2005 Posts: 88 Location: Argentina
|
Posted: Fri Sep 29, 2006 1:48 pm Post subject: |
|
|
| This happened to me too after doing a deep upgrade of Gentoo (which involved upgrading baselayout.) Why did i not have this problem before? i hadn´t touched /etc/conf.d/rc before and this didn´t happen. |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6101 Location: Blighty
|
Posted: Fri Sep 29, 2006 4:54 pm Post subject: |
|
|
Because the udev default is to coldplug.
The baselayout default is to allow coldplug too. Mainly because we never disallowed it in the past. _________________ When baselayout tells you to update config files or things break WE REALLY DO MEAN IT
Please add SOLVED to the thread title if your issue has been
Strip comments from configs please |
|
| Back to top |
|
 |
roblov Tux's lil' helper


Joined: 06 Oct 2005 Posts: 88 Location: Argentina
|
Posted: Fri Sep 29, 2006 6:22 pm Post subject: |
|
|
| Ok, so i´ll do what flash49 suggested. It seems that is the right way to fix this, isn´t it? |
|
| Back to top |
|
 |
UberLord Retired Dev


Joined: 18 Sep 2003 Posts: 6101 Location: Blighty
|
Posted: Sat Sep 30, 2006 5:31 am Post subject: |
|
|
Yes _________________ When baselayout tells you to update config files or things break WE REALLY DO MEAN IT
Please add SOLVED to the thread title if your issue has been
Strip comments from configs please |
|
| Back to top |
|
 |
|