Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2011 10:20:35 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        rank1seeker@gmail.com, freebsd-hackers@freebsd.org
Subject:   Re: Add SUM sysctl
Message-ID:  <BANLkTikq56r1kw6QJZo_O6ZtuOrYOS0Nmw@mail.gmail.com>
In-Reply-To: <8DBD8E84-82A8-41F1-9AA3-A0E31440EF98@gsoft.com.au>
References:  <20110415.150349.671.1@DEV> <22B12EE4-AE7B-49F7-B6BA-3FE7F967F508@gsoft.com.au> <20110415.154921.875.2@DEV> <F8EA9C16-A114-4270-895D-477AFA2990C9@gsoft.com.au> <20110415.171211.343.3@DEV> <6F20BB76-0D6A-4AB5-99DF-15954D8C2C9D@gsoft.com.au> <20110416.111455.390.4@DEV> <D18D23C3-5179-46BE-BAA6-288B06DB0408@gsoft.com.au> <20110416.142444.546.5@DEV> <BANLkTinQGnAQuXnho8a-ThiF0GJ51wF8-A@mail.gmail.com> <8DBD8E84-82A8-41F1-9AA3-A0E31440EF98@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Apr 16, 2011 at 8:41 AM, Daniel O'Connor <doconnor@gsoft.com.au> wr=
ote:
>
> On 16/04/2011, at 17:31, Freddie Cash wrote:
>>> DO YOU KNOW, what to look for, in sys that will indicate to my function=
,
>>> that it is in SUM?
>>
>> No network configured, no daemons running, just a single shell
>> running. =A0IOW, everything can be done manually in MUM to "simulate"
>> SUM.
>
> My point is that the difference is only in your brain.
>
> The kernel doesn't know the difference because there isn't one.

    Well, not from its perspective. From init's/rc's perspective,
sure.. there sort of is one.
    You could check for /var/run/dmesg.boot beforehand, but not if
you're dropping into singleuser mode from multiuser mode. You can do
some rc tricks to determine whether or not certain services have been
started to achieve whatever you want to for your scripts.
Thanks,
-Garrett



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTikq56r1kw6QJZo_O6ZtuOrYOS0Nmw>