Subject: Re: How to identify NetBSD ELF kernel?
To: Pavel Roskin <firstname.lastname@example.org>
From: None <email@example.com>
Date: 10/15/1999 11:49:43
> > Actually, maybe i can imagine that you'd want notes there to provide
> > firmware/bootloader information that's not in the executable headers,
> > but I can't think of anything like that off-hand...
> I want to know _how_, not _what_
> What I want to know how do I determine that the given kernel accepts
> boot parameters in NetBSD style, be it NetBSD or whatever else.
How about: if you can find a particular symbol, grab ostype.
It's a char array with the first 6 bytes equal to "NetBSD". osrelease
will get you the version.