Need /bin/sh script help

RW list-freebsd-2004 at morbius.sent.com
Tue Apr 11 13:31:47 UTC 2006


On Tuesday 11 April 2006 06:30, Garrett Cooper wrote:

> cd /usr/src;
> if [ -n `grep -e s/KERNCONF=/ /etc/make.conf` ] # want to look for
> KERNCONF in /etc/make.conf

if [ `make -V KERNCONF`  ]

>         read KERNCONF;
>         KC="KERNCONF=$KERNCONF";
> fi

You need to check that KC actually exists. IIRC a typo will cause GENERIC to 
build.


More information about the freebsd-questions mailing list