Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 1996 11:43:56 -0400 (EDT)
From:      Richard Toren <rpt@miles.sso.loral.com>
To:        questions@freebsd.org
Subject:   Test for kernel name
Message-ID:  <Pine.SUN.3.91.960420113826.2705A-100000@miles>

next in thread | raw e-mail | index | archive | help
I am trying to determine the name of the kernel that I am running
during boot. In order to run the asWedit HTML editor, I need to be
in linux emulation mode. So I want a test I can run during the boot
to do the modload conditionally. 

 uname -a returns:

 FreeBSD dragon.sso.loral.com 2.1.0-RELEASE FreeBSD 2.1.0-RELEASE #0:
   Thu Feb 22 19:00:42 EST 1996 rpt@dragon.sso.loral.com:
   /usr/src/sys/compile/LINUXEMU  i386
 (wrapped by mailer)

What is the best way to test for that 'LINUXEMU'? or is there another
system command that would tell me if the emulation is sysgened in the
kernel?

                         ====================================================
Rip Toren               | The bad news is that C++ is not an object-oriented |
rpt@miles.sso.loral.com | programming language. .... The good news is that   |
                        | C++ supports object-oriented programming.          |
                        |    C++ Programming & Fundamental Concepts          |
                        |     by Anderson & Heinze                           |
                         ====================================================



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SUN.3.91.960420113826.2705A-100000>