Date: Wed, 24 Mar 2010 19:29:34 +1300 (NZDT) From: Atom Smasher <atom@smasher.org> To: Garrett Cooper <yanefbsd@gmail.com> Cc: FreeBSD-Hackers <freebsd-hackers@freebsd.org>, Andrew Thompson <thompsa@freebsd.org> Subject: Re: kenv - output needed Message-ID: <1003241920390.40436@smasher> In-Reply-To: <7d6fde3d1003231947s74b62337yec0d7f0ff903d69b@mail.gmail.com> References: <1003231706140.40436@smasher> <20100323180354.GD45454@citylink.fud.org.nz> <1003240736570.40436@smasher> <7d6fde3d1003231210s38ec9419r5149fa7af6f5bd2b@mail.gmail.com> <1003241407070.40436@smasher> <20100324014229.GF45454@citylink.fud.org.nz> <7d6fde3d1003231947s74b62337yec0d7f0ff903d69b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 23 Mar 2010, Garrett Cooper wrote: > On Tue, Mar 23, 2010 at 6:42 PM, Andrew Thompson <thompsa@freebsd.org> > wrote: >> eval $(kenv | awk -F= '/^smbios/ { gsub("\\\.","_",$1); print $1 "=" $2}') >> >> echo $smbios_chassis_maker > > That's assuming that the there are only two tokens separated by = > though... Maybe something like the following? ================= even more optimistically, that assumes there's something useful stored in smbios.chassis.version. often there isn't... smbios.chassis.version="Chassis Version" smbios.chassis.version="To Be Filled By O.E.M." smbios.chassis.version="N/A" really, the examples above are why i'm trying to collect the output of kenv... to see what kind of garbage i'm likely to find, or even if the garbage can even be described as "likely" (which is becoming doubtful). -- ...atom ________________________ http://atom.smasher.org/ 762A 3B98 A3C3 96C9 C6B7 582A B88D 52E4 D9F5 7808 ------------------------------------------------- "Growth for the sake of growth is the ideology of the cancer cell." -- Edward Abbey
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1003241920390.40436>