On Tue, 23 Mar 2010, Garrett Cooper wrote:

On Tue, Mar 23, 2010 at 6:42 PM, Andrew Thompson <thom...@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

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Reply via email to