aboutsummaryrefslogtreecommitdiff
path: root/sbin/reboot
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-02-10 09:19:34 +0000
commit8d646af581627781d0f44bd773f64304834dd2e7 (patch)
treed6dac94023a6f3bfab88fb797e8cd641b0e912b2 /sbin/reboot
parent5bcb8532a8e86dfd432dd00a52d55465a98803ec (diff)
downloadsrc-8d646af581627781d0f44bd773f64304834dd2e7.tar.gz
src-8d646af581627781d0f44bd773f64304834dd2e7.zip
Sync program's usage() with manpage's SYNOPSIS.
Notes
Notes: svn path=/head/; revision=141611
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 2b9cd401aa4d..39022ab90ae9 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 195c094abb98..692364057cea 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);
}