Correct use of .Nm. Add rcsid. -Wall. Add -p flag in usage string (was missing).
This commit is contained in:
parent
30166fabb6
commit
9448def93e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=37674
@ -36,7 +36,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94
|
.\" @(#)boot_i386.8 8.2 (Berkeley) 4/19/94
|
||||||
.\"
|
.\"
|
||||||
.\" $Id: boot_i386.8,v 1.11 1998/04/26 18:15:38 phk Exp $
|
.\" $Id: boot_i386.8,v 1.12 1998/07/09 06:24:21 phk Exp $
|
||||||
.\"
|
.\"
|
||||||
.Dd April 19, 1994
|
.Dd April 19, 1994
|
||||||
.Dt BOOT 8 i386
|
.Dt BOOT 8 i386
|
||||||
@ -112,7 +112,7 @@ The unit number of the drive on the interface being used.
|
|||||||
0 for the first drive, 1 for the second drive, etc.
|
0 for the first drive, 1 for the second drive, etc.
|
||||||
.It part
|
.It part
|
||||||
The partition letter inside the BSD portion of the disk. See
|
The partition letter inside the BSD portion of the disk. See
|
||||||
.Xr disklabel 8 .
|
.Xr disklabel 8 .
|
||||||
By convention, only partition
|
By convention, only partition
|
||||||
.Ql a
|
.Ql a
|
||||||
contains a bootable image. If sliced disks are used
|
contains a bootable image. If sliced disks are used
|
||||||
@ -131,7 +131,7 @@ Boot flags:
|
|||||||
during kernel initialization,
|
during kernel initialization,
|
||||||
ask for the device to mount as as the root file system.
|
ask for the device to mount as as the root file system.
|
||||||
.It Fl b
|
.It Fl b
|
||||||
puts the screen in 800x600x4 mode (Vesa mode 0x102).
|
put the screen in 800x600x4 mode (Vesa mode 0x102).
|
||||||
This is useful on laptops whose graphics
|
This is useful on laptops whose graphics
|
||||||
chips are not supported by XFree86 by the XF86_VGA16 server.
|
chips are not supported by XFree86 by the XF86_VGA16 server.
|
||||||
You need to have a 8x16 font compiled into syscons or loaded as
|
You need to have a 8x16 font compiled into syscons or loaded as
|
||||||
@ -192,7 +192,7 @@ that the kernel was loaded from.
|
|||||||
boot into single-user mode; if the console is marked as
|
boot into single-user mode; if the console is marked as
|
||||||
.Dq insecure
|
.Dq insecure
|
||||||
.Pq see Xr ttys 5 ,
|
.Pq see Xr ttys 5 ,
|
||||||
the root password must be entered
|
the root password must be entered.
|
||||||
.It Fl v
|
.It Fl v
|
||||||
be verbose during device probing (and later).
|
be verbose during device probing (and later).
|
||||||
.El
|
.El
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
.\" SUCH DAMAGE.
|
.\" SUCH DAMAGE.
|
||||||
.\"
|
.\"
|
||||||
.\" @(#)reboot.8 8.1 (Berkeley) 6/9/93
|
.\" @(#)reboot.8 8.1 (Berkeley) 6/9/93
|
||||||
|
.\" $Id$
|
||||||
.\"
|
.\"
|
||||||
.Dd June 9, 1993
|
.Dd June 9, 1993
|
||||||
.Dt REBOOT 8
|
.Dt REBOOT 8
|
||||||
@ -52,7 +53,7 @@ stopping and restarting the system
|
|||||||
The
|
The
|
||||||
.Nm halt
|
.Nm halt
|
||||||
and
|
and
|
||||||
.Nm reboot
|
.Nm
|
||||||
utilities flush the file system cache to disk, send all running processes
|
utilities flush the file system cache to disk, send all running processes
|
||||||
a SIGTERM (and subsequently a SIGKILL) and, respectively, halt or restart
|
a SIGTERM (and subsequently a SIGKILL) and, respectively, halt or restart
|
||||||
the system.
|
the system.
|
||||||
@ -60,28 +61,20 @@ The action is logged, including entering a shutdown record into the login
|
|||||||
accounting file.
|
accounting file.
|
||||||
.Pp
|
.Pp
|
||||||
The options are as follows:
|
The options are as follows:
|
||||||
.Bl -tag -width Ds
|
.Bl -tag -width indent
|
||||||
.It Fl n
|
.It Fl n
|
||||||
If the
|
The file system cache is not flushed.
|
||||||
.Fl n
|
|
||||||
option is specified,
|
|
||||||
the file system cache is not flushed.
|
|
||||||
This option should probably not be used.
|
This option should probably not be used.
|
||||||
.It Fl q
|
.It Fl q
|
||||||
If the
|
The system is halted or restarted quickly and ungracefully, and only
|
||||||
.Fl q
|
|
||||||
option is specified,
|
|
||||||
the system is halted or restarted quickly and ungracefully, and only
|
|
||||||
the flushing of the file system cache is performed.
|
the flushing of the file system cache is performed.
|
||||||
This option should probably not be used.
|
This option should probably not be used.
|
||||||
.It Fl p
|
.It Fl p
|
||||||
If the
|
The system will turn off the power
|
||||||
.Fl p
|
|
||||||
option is specified, then the system will turn off the power
|
|
||||||
if it can. This is of course likely to make
|
if it can. This is of course likely to make
|
||||||
.Nm reboot
|
.Nm
|
||||||
rather similar to
|
rather similar to
|
||||||
.Nm halt.
|
.Nm halt .
|
||||||
.El
|
.El
|
||||||
.Pp
|
.Pp
|
||||||
The
|
The
|
||||||
@ -91,7 +84,7 @@ and
|
|||||||
utilities are nothing more than aliases for the
|
utilities are nothing more than aliases for the
|
||||||
.Nm halt
|
.Nm halt
|
||||||
and
|
and
|
||||||
.Nm reboot
|
.Nm
|
||||||
utilities.
|
utilities.
|
||||||
.Pp
|
.Pp
|
||||||
Normally, the
|
Normally, the
|
||||||
@ -105,6 +98,6 @@ users advance warning of their impending doom.
|
|||||||
.Xr sync 8
|
.Xr sync 8
|
||||||
.Sh HISTORY
|
.Sh HISTORY
|
||||||
A
|
A
|
||||||
.Nm reboot
|
.Nm
|
||||||
command appeared in
|
command appeared in
|
||||||
.At v6 .
|
.At v6 .
|
||||||
|
@ -29,30 +29,33 @@
|
|||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
|
||||||
* $Id: reboot.c,v 1.5 1997/06/16 06:43:13 charnier Exp $
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
static const char copyright[] =
|
||||||
"@(#) Copyright (c) 1980, 1986, 1993\n\
|
"@(#) Copyright (c) 1980, 1986, 1993\n\
|
||||||
The Regents of the University of California. All rights reserved.\n";
|
The Regents of the University of California. All rights reserved.\n";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
|
#if 0
|
||||||
static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93";
|
static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93";
|
||||||
|
#endif
|
||||||
|
static const char rcsid[] =
|
||||||
|
"$Id$";
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/reboot.h>
|
#include <sys/reboot.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <pwd.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <syslog.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <err.h>
|
#include <err.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#include <libutil.h>
|
||||||
|
#include <pwd.h>
|
||||||
|
#include <syslog.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
void usage __P((void));
|
void usage __P((void));
|
||||||
|
|
||||||
@ -178,6 +181,6 @@ main(argc, argv)
|
|||||||
void
|
void
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
(void)fprintf(stderr, "usage: %s [-nq]\n", dohalt ? "halt" : "reboot");
|
(void)fprintf(stderr, "usage: %s [-npq]\n", dohalt ? "halt" : "reboot");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user