From owner-freebsd-net Wed Oct 24 0: 5:21 2001 Delivered-To: freebsd-net@freebsd.org Received: from smtp.noos.fr (claudel.noos.net [212.198.2.83]) by hub.freebsd.org (Postfix) with ESMTP id BB41337B401 for ; Wed, 24 Oct 2001 00:05:18 -0700 (PDT) Received: (qmail 5710086 invoked by uid 0); 24 Oct 2001 07:05:17 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.229.145]) (envelope-sender ) by 212.198.2.83 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 24 Oct 2001 07:05:17 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id f9O75Fo49531; Wed, 24 Oct 2001 09:05:15 +0200 (CEST) (envelope-from root) Message-Id: <200110240705.f9O75Fo49531@gits.dyndns.org> Subject: Re: PXE boot vs. DHCP In-Reply-To: <200110232019.f9NKJnJ04011@vashon.polstra.com> To: John Polstra Date: Wed, 24 Oct 2001 09:05:15 +0200 (CEST) Cc: net@freebsd.org Reply-To: clefevre@citeweb.net From: Cyrille Lefevre Organization: ACME X-Face: X-Mailer: ELM [version 2.4ME+ PL94c (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 John Polstra wrote: > 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? IMHO, for instance, because this hack is only needed at PXE level not after, I am right ? Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message