From 86fd64c32504bb7b3a34fbc75b082ecdd23d803e Mon Sep 17 00:00:00 2001 From: apb Date: Wed, 2 Oct 2013 22:07:56 +0000 Subject: [PATCH] The "-s" flag is passed to init by the kernel, not by the boot loader. --- sbin/init/init.8 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/sbin/init/init.8 b/sbin/init/init.8 index 1fed02b27f13..84cad8aaae5c 100644 --- a/sbin/init/init.8 +++ b/sbin/init/init.8 @@ -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 @@ The following table describes the state machine used by .Bl -enum .It Single user shell. -.Nm -may be passed +If the kernel is booted in single user mode (see +.Xr boothowto 9 ) , +then the kernel will pass the .Fl s -from the boot program to prevent the system from going multi-user and +option to +.Nm +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,