summaryrefslogtreecommitdiffstats
path: root/sbin/reboot
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
committerru <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
commit719be5d34133092608f2cb4b6a8acd6cf2c403c6 (patch)
treed6dac94023a6f3bfab88fb797e8cd641b0e912b2 /sbin/reboot
parent7b37822a694ba18e94110b97e574dc91753e1d6c (diff)
downloadFreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.zip
FreeBSD-src-719be5d34133092608f2cb4b6a8acd6cf2c403c6.tar.gz
Sync program's usage() with manpage's SYNOPSIS.
Diffstat (limited to 'sbin/reboot')
-rw-r--r--sbin/reboot/reboot.820
-rw-r--r--sbin/reboot/reboot.c4
2 files changed, 12 insertions, 12 deletions
diff --git a/sbin/reboot/reboot.8 b/sbin/reboot/reboot.8
index 2b9cd40..39022ab 100644
--- a/sbin/reboot/reboot.8
+++ b/sbin/reboot/reboot.8
@@ -39,16 +39,16 @@
.Nd stopping and restarting the system
.Sh SYNOPSIS
.Nm halt
-.Op Fl lnqp
+.Op Fl lnpq
.Op Fl k Ar kernel
.Nm
-.Op Fl dlnqp
+.Op Fl dlnpq
.Op Fl k Ar kernel
.Nm fasthalt
-.Op Fl lnqp
+.Op Fl lnpq
.Op Fl k Ar kernel
.Nm fastboot
-.Op Fl dlnqp
+.Op Fl dlnpq
.Op Fl k Ar kernel
.Sh DESCRIPTION
The
@@ -98,12 +98,6 @@ and log this themselves.
.It Fl n
The file system cache is not flushed.
This option should probably not be used.
-.It Fl q
-The system is halted or restarted quickly and ungracefully, and only
-the flushing of the file system cache is performed (if the
-.Fl n
-option is not specified).
-This option should probably not be used.
.It Fl p
The system will turn off the power if it can.
If the power down action fails, the system
@@ -112,6 +106,12 @@ will halt or reboot normally, depending on whether
or
.Nm
was called.
+.It Fl q
+The system is halted or restarted quickly and ungracefully, and only
+the flushing of the file system cache is performed (if the
+.Fl n
+option is not specified).
+This option should probably not be used.
.El
.Pp
The
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index 195c094..6923640 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -205,8 +205,8 @@ restart:
static void
usage()
{
- (void)fprintf(stderr, "usage: %s [-dnpq] [-k kernel]\n",
- dohalt ? "halt" : "reboot");
+ (void)fprintf(stderr, "usage: %s [-%slnpq] [-k kernel]\n",
+ getprogname(), dohalt ? "" : "d");
exit(1);
}
OpenPOWER on IntegriCloud