From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 15 15:54:34 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 919001065677 for ; Fri, 15 Apr 2011 15:54:34 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 29A1D8FC28 for ; Fri, 15 Apr 2011 15:54:33 +0000 (UTC) Received: by wyf23 with SMTP id 23so2847407wyf.13 for ; Fri, 15 Apr 2011 08:54:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:from:to:subject:date:in-reply-to :references:x-mailer; bh=VCRyn32O8MZ57U5OQteu2oC9v7SyfOnkeXFauwXQ0ww=; b=w7V+Jz8tpyHgwsO1Y5Zgh789Y5xV4kwth/m+TACbubDi6dr/HO0hZJxUgQazZTxyAy M8YRDB49W36wkYsR0kPZYPjC0p+x1eKG8Un1NGok4sGPgVVp9GQJY2TMR1HvDbl1TMAh RZXE82nl0j4r+9f58WHp3SthJKBM9eRTD4o+k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:in-reply-to:references:x-mailer; b=qYYsKxgdh8QScgnsBNRpQnifYkXOqSXXbQHkuvD56iX8RqzhrbxuHfQgKOZYIVLPyT 4IOvckitfp7ZiZS4tUD3Okk6C940FK7QIup1Rauv8C1Llv4bQ1W1MLSpi4wuth5AY/f5 OgMuUzDCIqYERcaDpCx1jqoBYfwqEsoRuXhf4= Received: by 10.227.209.137 with SMTP id gg9mr2176908wbb.124.1302882872809; Fri, 15 Apr 2011 08:54:32 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id l24sm1698305wbc.64.2011.04.15.08.54.30 (version=SSLv3 cipher=OTHER); Fri, 15 Apr 2011 08:54:31 -0700 (PDT) Message-ID: <20110415.154921.875.2@DEV> From: rank1seeker@gmail.com To: freebsd-hackers@freebsd.org Date: Fri, 15 Apr 2011 17:49:21 +0200 In-Reply-To: <22B12EE4-AE7B-49F7-B6BA-3FE7F967F508@gsoft.com.au> References: <20110415.150349.671.1@DEV> <22B12EE4-AE7B-49F7-B6BA-3FE7F967F508@gsoft.com.au> X-Mailer: POP Peeper (3.7.0.0) Subject: Re: Add SUM sysctl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Apr 2011 15:54:34 -0000 > On 15/04/2011, at 17:03, rank1seeker@gmail.com wrote: > > I would like implementation of boolean sysctl var, that would show, is system in a single user mode. > > I would like it from 8.3 onwards. > > AFAIK the kernel doesn't have a "single user" mode. > > It's just that when you boot into single user mode it asks you want to run rather than starting /sbin/init. I see, but 'ps' shows /sbin/init as PID 1, in both SUM and MUM. How can I fiducially ensure that I am in SUM. On what to rely/look on. I wana put it in sh's function, for usage in scripts.