From owner-freebsd-questions Sat Apr 20 08:45:51 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA18092 for questions-outgoing; Sat, 20 Apr 1996 08:45:51 -0700 (PDT) Received: from wdl1.wdl.loral.com (wdl1.wdl.loral.com [137.249.32.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA18087 for ; Sat, 20 Apr 1996 08:45:50 -0700 (PDT) Received: from miles.sso.loral.com (miles.wdl.loral.com) by wdl1.wdl.loral.com (5.x/WDL-2.4-1.0) id AA21535; Sat, 20 Apr 1996 08:45:18 -0700 Received: by miles.sso.loral.com (4.1/SSO-SUN-2.04) id AA02709; Sat, 20 Apr 96 11:43:58 EDT Date: Sat, 20 Apr 1996 11:43:56 -0400 (EDT) From: Richard Toren X-Sender: rpt@miles To: questions@freebsd.org Subject: Test for kernel name Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 | ====================================================