Re: method to test for link before dhclient at boot?

2004-02-20 Thread James Long
On Thu, Feb 19, 2004 at 08:54:55PM -0500, Duane Winner wrote:
 
 I'm wondering if anybody knows a technique for this problem:
 
 I
 want the boot process to bypass DHCP so that it will boot faster

Have you tried putting

dhclient_flags=-1

in /etc/rc.conf  ?

That should accomplish much of what you want, without a lot of futzing.

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: method to test for link before dhclient at boot?

2004-02-19 Thread Dan Pelleg
Duane Winner [EMAIL PROTECTED] writes:

 Hello,

 I'm wondering if anybody knows a technique for this problem:

 I have a laptop that I frequently boot when it is not plugged into an
 ethernet network.

 In these circumstances, I would like to add some logic during boot time
 that looks at at the status of my fxp0 interface.

 If status: no carrier is true, then I do not want dhclient to run. I
 want the boot process to bypass DHCP so that it will boot faster, or so
 that I don't have to hit CTRL-C after the hostname is set, and so that
 I can easily run my wireless setup script or ppp manually if I choose to
 connect to a network at all.

 But I still need to be able to detect an active link state on fxp0 and
 lease a DHCP address automatically for when I'm in the office and
 plugged in.

 Is there a way to accomplish this?

 Thanks,
 DW


Use nicmond (net/nicmond in ports). It will do all that, and even bring
your interface up as soon as you plug the network cable in.

-- 

  Dan Pelleg
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]