From owner-freebsd-hackers Fri Oct 18 10:24:58 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA09478 for hackers-outgoing; Fri, 18 Oct 1996 10:24:58 -0700 (PDT) Received: from toth.hq.ferg.com (pm3-18.wmbg.widomaker.com [206.161.154.83]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id KAA09473 for ; Fri, 18 Oct 1996 10:24:52 -0700 (PDT) Received: from toth.hq.ferg.com (localhost.hq.ferg.com [127.0.0.1]) by toth.hq.ferg.com (8.7.5/8.7.3) with SMTP id NAA19466; Fri, 18 Oct 1996 13:23:07 -0400 (EDT) Date: Fri, 18 Oct 1996 13:23:04 -0400 (EDT) From: Branson Matheson X-Sender: branson@toth.hq.ferg.com To: Joe Greco cc: Bruce Evans , jgreco@brasil.moneng.mei.com, freebsd-hackers@freebsd.org Subject: Re: TERM=cons25 in roots' .profile?!? In-Reply-To: <199610181604.LAA03240@brasil.moneng.mei.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Fri, 18 Oct 1996, Joe Greco wrote: > > >Anyone have ideas about a more general fix than throwing an explicit > > >TERM=xxxx in .profile? > > > > Don't login as root, use su :-). > > THAT should be in /root/.profile. > > > /.profile shouldn't be a (sym)link to /root/.profile. It shouldn't > > set HOME to /root. Then you can just edit /.profile to suit the boot > > environment. > > That would be pretty reasonable, I think. > > ... JG > 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. -branson ============================================================================= Branson Matheson | Ferguson Enterprises | If Pete and Repeat were System Administrator | W: (804) 874-7795 | sittin on a fence and Pete Unix, Perl, WWW | branson@widomaker.com | fell off, who is left?