Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Mar 2010 14:42:29 +1300
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        Atom Smasher <atom@smasher.org>
Cc:        Garrett Cooper <yanefbsd@gmail.com>, FreeBSD-Hackers <freebsd-hackers@freebsd.org>
Subject:   Re: kenv - output needed
Message-ID:  <20100324014229.GF45454@citylink.fud.org.nz>
In-Reply-To: <1003241407070.40436@smasher>
References:  <1003231706140.40436@smasher> <20100323180354.GD45454@citylink.fud.org.nz> <1003240736570.40436@smasher> <7d6fde3d1003231210s38ec9419r5149fa7af6f5bd2b@mail.gmail.com> <1003241407070.40436@smasher>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 24, 2010 at 02:09:41PM +1300, Atom Smasher wrote:
> On Tue, 23 Mar 2010, Garrett Cooper wrote:
> 
>> Are you looking for data represented similar to sysctl(8)?
> ============
> 
> it doesn't quite have to be, but it is being parsed in a script.

How about pulling the kenv variables into the script.

#!/bin/sh

eval $(kenv | awk -F= '/^smbios/ { gsub("\\\.","_",$1); print $1 "=" $2}')

echo $smbios_chassis_maker



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