Re: [gentoo-user] offline runlevel

2006-11-16 Thread Roger Mason
Devon Miller [EMAIL PROTECTED] writes:

And, I'll second Richard, emerge ifplugd
dcm

Thanks Richard Joe  Devon, ifplugd is working perfectly for me.

Roger

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] offline runlevel

2006-11-15 Thread Roger Mason
Hello,

I am following the runlevel guide
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2chap=4 
to set up an offline runlevel for my laptop.  I have in
/etc/runlevels/offline:

rmason # rc-update show offline
   acpid | offline 
cpufreqd | offline 
 gpm | offline 
   ivman | offline 
   local | offline 
  pcmcia | offline 
   syslog-ng | offline 
  vixie-cron | offline

Based on the ouput of scriptname ineed, nothing there needs
net.eth0.

When I boot into the kernel with this entry in grub.conf:

# For booting GNU/Linux
title  Gentoo Linux 2.6.17-gentoo-r8 (offline)
root (hd0,0)
kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/sda3 softlevel=offline

the system still tries to start eth0 and then wastes time while dhcpd
times out.

I am not sure what what I have done wrong.  Can anyone help?

Thanks,
Roger Mason

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] offline runlevel

2006-11-15 Thread Flophouse Joe

On Wed, 15 Nov 2006, Roger Mason wrote:


I am following the runlevel guide
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2chap=4
to set up an offline runlevel for my laptop.



When I boot into the kernel with this entry in grub.conf:

# For booting GNU/Linux
title  Gentoo Linux 2.6.17-gentoo-r8 (offline)
root (hd0,0)
kernel /boot/kernel-2.6.17-gentoo-r8 root=/dev/sda3 softlevel=offline

the system still tries to start eth0 and then wastes time while dhcpd
times out.


Is it possible that there are still some services set to start in the
boot runlevel that would be more appropriate in the default or
offline runlevel?

Joe
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] offline runlevel

2006-11-15 Thread Richard Fish

On 11/15/06, Roger Mason [EMAIL PROTECTED] wrote:

the system still tries to start eth0 and then wastes time while dhcpd
times out.


Probably you need one or both of the following in /etc/conf.d/rc:

RC_PLUG_SERVICES=!net.eth0
RC_NET_STRICT_CHECKING=lo

BUT, what you probably really want is to emerge ifplugd.  With this
installed, gentoo will detect when there is a cable connected and
startup networking automagically when a cable is inserted.  It should
also avoid timing out on dhcp requests when no link is detected.

-Richard
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] offline runlevel

2006-11-15 Thread Roger Mason
Flophouse Joe [EMAIL PROTECTED] writes:

 Is it possible that there are still some services set to start in the
 boot runlevel that would be more appropriate in the default or
 offline runlevel?

 Joe

Well, the only script in boot that looks promising is net.lo: I had
considered removing it from boot but decided to ask before (possibly) making a
big problem from a small one.

Thanks,
Roger

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] offline runlevel

2006-11-15 Thread Devon Miller
try grepping for need in /etc/runlevels/boot/* and /etc/runlevels/offline/* to see if any of your boot or offline services has a dependency on networking..If there is something that requires net, see if setting RC_NET_STRICT_CHECKING=lo in /etc/conf.d/rc will do the trick. If that doesn;t work, then you may need to remove the service from that softlevel.
Also check for PROGRAM keys in your /etc/udev/rules.d/* to make sure it's not udev trying to start the device. However, I don't believe there's anything like that in the default rule sets.And, I'll second Richard, emerge ifplugd
dcmOn 11/15/06, Roger Mason [EMAIL PROTECTED] wrote:
Flophouse Joe [EMAIL PROTECTED] writes: Is it possible that there are still some services set to start in the
 boot runlevel that would be more appropriate in the default or offline runlevel? JoeWell, the only script in boot that looks promising is net.lo
: I hadconsidered removing it from boot but decided to ask before (possibly) making abig problem from a small one.Thanks,Roger--gentoo-user@gentoo.org
 mailing list