summaryrefslogtreecommitdiffstats
path: root/sbin/shutdown/Makefile
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-12-30 18:06:31 +0000
committerpjd <pjd@FreeBSD.org>2010-12-30 18:06:31 +0000
commit7a575413cdc4c11c26f5d9578b5458a6cbaecdbd (patch)
tree841e4912bb3223fec4f317ed614a2a385cbb5dec /sbin/shutdown/Makefile
parent839236cbc1d5d457989fd137b9f17d9eaf1648dd (diff)
downloadFreeBSD-src-7a575413cdc4c11c26f5d9578b5458a6cbaecdbd.zip
FreeBSD-src-7a575413cdc4c11c26f5d9578b5458a6cbaecdbd.tar.gz
For compatibility with Linux and Solaris add poweroff(8).
It is implemented as a hard link to shutdown(8) and it is equivalent of: # shutdown -p now While I'm here put one line of usage into one line of C code so it is easier to grep(1) and separate unrelated code with empty line. MFC after: 2 weeks
Diffstat (limited to 'sbin/shutdown/Makefile')
-rw-r--r--sbin/shutdown/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/sbin/shutdown/Makefile b/sbin/shutdown/Makefile
index 09b0b3e..a6ecb93 100644
--- a/sbin/shutdown/Makefile
+++ b/sbin/shutdown/Makefile
@@ -3,6 +3,8 @@
PROG= shutdown
MAN= shutdown.8
+LINKS= ${BINDIR}/shutdown ${BINDIR}/poweroff
+MLINKS= shutdown.8 poweroff.8
BINOWN= root
BINGRP= operator
OpenPOWER on IntegriCloud