diff --git a/sbin/shutdown/shutdown.c b/sbin/shutdown/shutdown.c index 101e003b44e2..e92d41220a20 100644 --- a/sbin/shutdown/shutdown.c +++ b/sbin/shutdown/shutdown.c @@ -133,7 +133,7 @@ main(int argc, char **argv) goto poweroff; } - while ((ch = getopt(argc, argv, "-chknoprq")) != -1) + while ((ch = getopt(argc, argv, "-chknopqr")) != -1) switch (ch) { case '-': readstdin = 1; @@ -156,12 +156,12 @@ main(int argc, char **argv) case 'p': dopower = 1; break; - case 'r': - doreboot = 1; - break; case 'q': dowarn = false; break; + case 'r': + doreboot = 1; + break; case '?': default: usage((char *)NULL);