diff options
author | dg <dg@FreeBSD.org> | 1994-08-21 05:48:34 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1994-08-21 05:48:34 +0000 |
commit | 2c49a7e8c78f68ab5d37e39803447ddacda434c2 (patch) | |
tree | dcd47489a244fc193eb4bd4dfa9ce1b2fde9b4d2 /sbin/reboot/reboot.c | |
parent | 743dba06ce06157ddf2a0e17aa508e3812cf4c25 (diff) | |
download | FreeBSD-src-2c49a7e8c78f68ab5d37e39803447ddacda434c2.zip FreeBSD-src-2c49a7e8c78f68ab5d37e39803447ddacda434c2.tar.gz |
Install aliases "fasthalt" and "fastboot" for halt and boot respectively.
This is for "backwards compatibility". Documented these aliases in the
manual page.
Diffstat (limited to 'sbin/reboot/reboot.c')
-rw-r--r-- | sbin/reboot/reboot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c index df5515a..6d0fee4 100644 --- a/sbin/reboot/reboot.c +++ b/sbin/reboot/reboot.c @@ -66,7 +66,7 @@ main(argc, argv) int ch, howto, lflag, nflag, qflag, sverrno; char *p, *user; - if (!strcmp((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) { + if (strstr((p = rindex(*argv, '/')) ? p + 1 : *argv, "halt")) { dohalt = 1; howto = RB_HALT; } else |