From owner-freebsd-hackers Sun Oct 14 15:44:27 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.noos.fr (zola.noos.net [212.198.2.76]) by hub.freebsd.org (Postfix) with ESMTP id 0B8DD37B408 for ; Sun, 14 Oct 2001 15:44:24 -0700 (PDT) Received: (qmail 4260812 invoked by uid 0); 14 Oct 2001 22:44:22 -0000 Received: from unknown (HELO gits.dyndns.org) ([212.198.231.187]) (envelope-sender ) by 212.198.2.76 (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 14 Oct 2001 22:44:22 -0000 Received: (from root@localhost) by gits.dyndns.org (8.11.6/8.11.6) id f9EMiKA73045; Mon, 15 Oct 2001 00:44:20 +0200 (CEST) (envelope-from root) Message-Id: <200110142244.f9EMiKA73045@gits.dyndns.org> Subject: Re: loader.conf conditional assignment In-Reply-To: <200110142004.f9EK4Ze01075@mass.dis.org> To: Mike Smith Date: Mon, 15 Oct 2001 00:44:19 +0200 (CEST) Cc: Igor M Podlesny , "Daniel C. Sobral" , Vadim Vygonets , freebsd-hackers@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-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mike Smith wrote: > > Is there any chance off implementing syntax like > > > > kernel=${kernel:-/kernel} > > > > which is obviously sh-compilant? > > I don't much like either of these proposals. > > My principal objection is that they're trying to solve the wrong problem. > > The original poster is setting $kernel in the DHCP client code, and then > having it overwritten when defaults/loader.conf is parsed. > > If instead they set $dhcp_kernel, and then put > > kernel=$dhcp_kernel > > in their "real" loader.conf the entire problem should go away, and we > don't have to extend any of the syntax. what's happen if $dhcp_kernel isn't sets ? Cyrille. -- Cyrille Lefevre mailto:clefevre@citeweb.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message