Install aliases "fasthalt" and "fastboot" for halt and boot respectively.
This is for "backwards compatibility". Documented these aliases in the manual page.
This commit is contained in:
parent
2539bf7513
commit
7f4b19d683
@ -4,8 +4,9 @@ PROG= reboot
|
||||
DPADD= ${LIBUTIL}
|
||||
LDADD= -lutil
|
||||
MAN8= reboot.8 boot_hp300.8 boot_i386.8 boot_sparc.8 boot_tahoe.8 boot_vax.8
|
||||
MLINKS= reboot.8 halt.8
|
||||
LINKS= ${BINDIR}/reboot ${BINDIR}/halt
|
||||
MLINKS= reboot.8 halt.8 reboot.8 fastboot.8 reboot.8 fasthalt.8
|
||||
LINKS= ${BINDIR}/reboot ${BINDIR}/halt ${BINDIR}/reboot ${BINDIR}/fastboot \
|
||||
${BINDIR}/reboot ${BINDIR}/fasthalt
|
||||
|
||||
XXXBROKENafterinstall:
|
||||
${MINSTALL} boot_hp300.8 ${DESTDIR}${MANDIR}8/hp300/boot.8
|
||||
|
@ -44,6 +44,10 @@ stopping and restarting the system
|
||||
.Op Fl nq
|
||||
.Nm reboot
|
||||
.Op Fl nq
|
||||
.Nm fasthalt
|
||||
.Op Fl nq
|
||||
.Nm fastboot
|
||||
.Op Fl nq
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm halt
|
||||
@ -72,6 +76,16 @@ the flushing of the file system cache is performed.
|
||||
This option should probably not be used.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Nm fasthalt
|
||||
and
|
||||
.Nm fastboot
|
||||
utilities are nothing more than aliases for the
|
||||
.Nm halt
|
||||
and
|
||||
.Nm reboot
|
||||
utilities.
|
||||
.Pp
|
||||
Normally, the
|
||||
.Xr shutdown 8
|
||||
utility is used when the system needs to be halted or restarted, giving
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user