diff options
author | ngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f> | 2017-02-25 03:11:08 +0000 |
---|---|---|
committer | ngie <ngie@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f> | 2017-02-25 03:11:08 +0000 |
commit | 192ee4d562da132a2a6cd6f55cecfea8237cc20f (patch) | |
tree | 99a4e712b3abf8e4d5af410db8849558daaa9a7a /rescue | |
parent | 6defc9b53002edabed3c19086ae43685cd1dc250 (diff) | |
download | freebsd-192ee4d562da132a2a6cd6f55cecfea8237cc20f.tar.gz freebsd-192ee4d562da132a2a6cd6f55cecfea8237cc20f.tar.bz2 |
Add shutdown/poweroff support to rescue(8)
shutdown is a safer way to power off than reboot (in general), because of
the added shutdown process that it executes via /etc/rc.shutdown . It was
odd that it was missing from rescue(8) since reboot and friends were
added in past commits.
While here, alias poweroff to shutdown for parity with sbin/shutdown/Makefile
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
git-svn-id: http://svn.freebsd.org/base/head@314239 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Diffstat (limited to 'rescue')
-rw-r--r-- | rescue/rescue/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index 12aef08a8a5..9b4e1eecd59 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -99,7 +99,7 @@ CRUNCH_PROGS_sbin= badsect \ mount_udf mount_unionfs newfs \ newfs_msdos nos-tun ping reboot \ restore rcorder route routed rtquery rtsol savecore \ - spppcontrol swapon sysctl tunefs umount + shutdown spppcontrol swapon sysctl tunefs umount .if ${MK_ATM} != "no" CRUNCH_PROGS_sbin+= atmconfig @@ -166,6 +166,7 @@ CRUNCH_ALIAS_restore= rrestore CRUNCH_ALIAS_dump= rdump CRUNCH_ALIAS_fsck_ffs= fsck_4.2bsd fsck_ufs CRUNCH_ALIAS_geom= glabel gpart +CRUNCH_ALIAS_shutdown= poweroff # dhclient has historically been troublesome... CRUNCH_PROGS_sbin+= dhclient |