Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/init The "-s" flag is passed to init by the kernel, not...



details:   https://anonhg.NetBSD.org/src/rev/ac1fb710b3ed
branches:  trunk
changeset: 790301:ac1fb710b3ed
user:      apb <apb%NetBSD.org@localhost>
date:      Wed Oct 02 22:07:56 2013 +0000

description:
The "-s" flag is passed to init by the kernel, not by the boot loader.

diffstat:

 sbin/init/init.8 |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r cba452cb05cf -r ac1fb710b3ed sbin/init/init.8
--- a/sbin/init/init.8  Wed Oct 02 22:01:47 2013 +0000
+++ b/sbin/init/init.8  Wed Oct 02 22:07:56 2013 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: init.8,v 1.58 2013/10/02 22:01:47 apb Exp $
+.\"    $NetBSD: init.8,v 1.59 2013/10/02 22:07:56 apb Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -40,6 +40,7 @@
 .Nd process control initialization
 .Sh SYNOPSIS
 .Nm
+.Op Fl s
 .Sh DESCRIPTION
 The
 .Nm
@@ -64,10 +65,13 @@
 .Bl -enum
 .It
 Single user shell.
+If the kernel is booted in single user mode (see
+.Xr boothowto 9 ) ,
+then the kernel will pass the
+.Fl s
+option to
 .Nm
-may be passed
-.Fl s
-from the boot program to prevent the system from going multi-user and
+to prevent the system from going multi-user and
 to instead execute a single user shell without starting the normal
 daemons.
 If the kernel is in a secure mode,



Home | Main Index | Thread Index | Old Index