From owner-freebsd-hackers Fri Oct 18 11:25:54 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA13884 for hackers-outgoing; Fri, 18 Oct 1996 11:25:54 -0700 (PDT) Received: from brasil.moneng.mei.com (brasil.moneng.mei.com [151.186.109.160]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id LAA13873 for ; Fri, 18 Oct 1996 11:25:50 -0700 (PDT) Received: (from jgreco@localhost) by brasil.moneng.mei.com (8.7.Beta.1/8.7.Beta.1) id NAA03626; Fri, 18 Oct 1996 13:25:04 -0500 From: Joe Greco Message-Id: <199610181825.NAA03626@brasil.moneng.mei.com> Subject: Re: TERM=cons25 in roots' .profile?!? To: branson@widomaker.com (Branson Matheson) Date: Fri, 18 Oct 1996 13:25:04 -0500 (CDT) Cc: jgreco@brasil.moneng.mei.com, bde@zeta.org.au, freebsd-hackers@freebsd.org In-Reply-To: from "Branson Matheson" at Oct 18, 96 01:23:04 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I was trying to find a way to get the run level on a FreeBSD > machine.. and I did not come up with a way. I can prove what level > it is at by what is mounted.. etc.. but nothing that definiativly > proves it. If we could find somthing ( that worked with just root > mounted r/o ) we could use that as a switch for the console setting. Hi Branson, If you are in single user mode, the profile that is run is the one in "/.profile" (at least, it used to be, and I believe that this is still true. Somebody please correct me if not!). If you are logging in, root's home directory as listed in /etc/passwd is "/root", and the "/root/.profile" in that directory is run instead. At this time, both .profiles are the same (linked). That is the significance of Bruce's suggestion... it is not perfect but I think it is the solution I would consider preferable. No solution can really be perfect, methinks. ... JG