From owner-freebsd-net Tue Oct 23 13:20:12 2001 Delivered-To: freebsd-net@freebsd.org Received: from wall.polstra.com (wall-gw.polstra.com [206.213.73.130]) by hub.freebsd.org (Postfix) with ESMTP id DB11237B401 for ; Tue, 23 Oct 2001 13:20:09 -0700 (PDT) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.11.3/8.11.3) with ESMTP id f9NKJn893612; Tue, 23 Oct 2001 13:19:49 -0700 (PDT) (envelope-from jdp@wall.polstra.com) Received: (from jdp@localhost) by vashon.polstra.com (8.11.6/8.11.0) id f9NKJnJ04011; Tue, 23 Oct 2001 13:19:49 -0700 (PDT) (envelope-from jdp) Date: Tue, 23 Oct 2001 13:19:49 -0700 (PDT) Message-Id: <200110232019.f9NKJnJ04011@vashon.polstra.com> To: net@freebsd.org From: John Polstra Cc: clefevre@citeweb.net Subject: Re: PXE boot vs. DHCP In-Reply-To: <200110232013.f9NKDmU27220@gits.dyndns.org> References: <200110232013.f9NKDmU27220@gits.dyndns.org> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In article <200110232013.f9NKDmU27220@gits.dyndns.org>, Cyrille Lefevre wrote: > IMHO, it would be better to provide a /etc/dhclient-enter-hooks > while you are net installing the station, then remove it when > finished. > > the dhclient-enter-hooks would be almost what you are doing : > > #!/bin/sh > > if [ x$reason = xPREINIT ]; then > case `ifconfig $interface` in > *flags=*[\<,]UP[\>,]*) exit 0 ;; > esac > fi I know the problem could be solved that way, and if I were using a Microsoft operating system that's what I'd have to do. But this is FreeBSD, and we can fix things that are broken. What is the reason you think it would be better to put the solution into dhclient-enter-hooks? John -- John Polstra John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message