Subject: Re: passing in the booted kernel name...?
To: Segmentation Violation. Core dumped. <greywolf@starwolf.com>
From: None <drochner@zel459.zel.kfa-juelich.de>
List: tech-kern
Date: 01/08/1999 21:51:02
greywolf@starwolf.com said:
> Is there any way for the kernel to make this information available to
> userland?

on i386:
bash$ /usr/sbin/sysctl machdep.booted_kernel
machdep.booted_kernel = netbsd

Could be moved to the mi namespace, but its meaning will stay md
if you think of "alternate filesystem" and "what if you blah"...

best regards
Matthias