kenv - output needed
Andrew Thompson
thompsa at FreeBSD.org
Wed Mar 24 01:42:35 UTC 2010
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
More information about the freebsd-hackers
mailing list