Re: [gentoo-user] eth0 keeps starting

2009-04-10 Thread Etaoin Shrdlu
On Friday 10 April 2009, 13:15, Mike Kazantsev wrote:

> > Now I don't want to start eth0 at boot anymore (only wlan0), so I
> > commented out the config_eth0=( "dhcp" ) in /etc/conf.d/net, and did
> > a rc-update del net.eth0 default (which correctly deleted net.eth0
> > from the default runlevel).
>
> That should be done by disabling hotplugging in /etc/rc.conf.
> You can either disable hotplug completely, or, better yet, since you
> don't need in for one device only, disable it for that device:
>
>   rc_hotplug="!net.eth0"

As it happens, I discovered that just after clicking "send" :-)
Thank you!



Re: [gentoo-user] eth0 keeps starting

2009-04-10 Thread Mike Kazantsev
On Fri, 10 Apr 2009 11:12:04 +0100
Etaoin Shrdlu  wrote:

> On my laptop, I always had an issue with eth0; during boot, I got a 
> warning "no configuration found for eth0, assuming dhcp" despite the 
> fact that in /etc/conf.d/net I had config_eth0=( "dhcp" ).

I don't remember since when, but the correct syntax should be
'config_eth0="dhcp"'. Could be it's that way since OpenRC and
baselayout-2, and that will explain why you don't have the same problem
on other, probably not up-to-date or just stable arch, machines.

> Now I don't want to start eth0 at boot anymore (only wlan0), so I 
> commented out the config_eth0=( "dhcp" ) in /etc/conf.d/net, and did a 
> rc-update del net.eth0 default (which correctly deleted net.eth0 from 
> the default runlevel).

That should be done by disabling hotplugging in /etc/rc.conf.
You can either disable hotplug completely, or, better yet, since you
don't need in for one device only, disable it for that device:

  rc_hotplug="!net.eth0"

Note that I'm not sure about syntax with baselayout-1, but the option
should be there anyway.

-- 
Mike Kazantsev // fraggod.net


signature.asc
Description: PGP signature


Re: [gentoo-user] eth0 keeps starting

2009-04-10 Thread Etaoin Shrdlu
On Friday 10 April 2009, 12:12, Etaoin Shrdlu wrote:

> # rc-update -a show

Sorry, I should have copied/pasted - that should have been 
just "rc-update show". Here is another extended output:

# rc-update -v show
   acpid |  default
  atieventsd |
bootmisc | boot
 checkfs | boot
   checkroot | boot
   clock | boot
 consolefont | boot
 crypto-loop |
 dnsextd |
famd |
  hdparm |  default
hostname | boot
   ip6tables |
iptables |  default
 keymaps | boot
  kismet |
   local |  default nonetwork
  localmount | boot
   mdnsd |
  mDNSResponderPosix |
 modules | boot
net.eth0 |
  net.lo | boot
netmount |  default
  net.tap100 |  default
   net.wlan0 |  default
nscd |
 numlock |
 pciparm |
 portmap |
 pwcheck |
   pydoc-2.5 |
   rmnologin | boot
  rsyncd |
   saslauthd |
  smartd |
  splash |  default
sshd |  default
sysklogd |  default
  udev-postmount |
 urandom | boot
 vde |
  vixie-cron |  default
 xdm |
 xfs |  default



[gentoo-user] eth0 keeps starting

2009-04-10 Thread Etaoin Shrdlu
Ok, I'm out of ideas on this one.
On my laptop, I always had an issue with eth0; during boot, I got a 
warning "no configuration found for eth0, assuming dhcp" despite the 
fact that in /etc/conf.d/net I had config_eth0=( "dhcp" ). (btw, the 
same config has always worked fine in any other computer, ie no 
warnings). That has been like that for ages, but I did not care too much 
since in the end what I wanted for eth0 was dhcp, and that is what I was 
getting anyway, and I never bothered to find out more (yes, I should 
have).

Now I don't want to start eth0 at boot anymore (only wlan0), so I 
commented out the config_eth0=( "dhcp" ) in /etc/conf.d/net, and did a 
rc-update del net.eth0 default (which correctly deleted net.eth0 from 
the default runlevel). Sure enough, net.eth0 is not part of any runlevel 
now:

# rc-update -a show
   acpid |  default
bootmisc | boot
 checkfs | boot
   checkroot | boot
   clock | boot
 consolefont | boot
  hdparm |  default
hostname | boot
iptables |  default
 keymaps | boot
   local |  default nonetwork
  localmount | boot
 modules | boot
  net.lo | boot
netmount |  default
  net.tap100 |  default
   net.wlan0 |  default
   rmnologin | boot
  splash |  default
sshd |  default
sysklogd |  default
 urandom | boot
  vixie-cron |  default
 xfs |  default


Nonetheless, at boot I keep getting the "no configuration found for eth0, 
assuming dhcp" warning, and it stubbornly tries to bring up eth0 using 
dhcp. As far as I can tell, no other initscript depends on net.eth0 (but 
I may not be looking in the right place).

Any ideas?

Thank you.