Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Oct 2001 00:44:19 +0200 (CEST)
From:      Cyrille Lefevre <clefevre@citeweb.net>
To:        Mike Smith <msmith@freebsd.org>
Cc:        Igor M Podlesny <hostmaster@morning.ru>, "Daniel C. Sobral" <dcs@newsguy.com>, Vadim Vygonets <vadik-hackers@freebsd.vygo.net>, freebsd-hackers@freebsd.org
Subject:   Re: loader.conf conditional assignment
Message-ID:  <200110142244.f9EMiKA73045@gits.dyndns.org>
In-Reply-To: <200110142004.f9EK4Ze01075@mass.dis.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110142244.f9EMiKA73045>