From 94064d0e2b985310b93307c0f9ecc511ea57ab22 Mon Sep 17 00:00:00 2001 From: ngie Date: Sun, 12 Mar 2017 04:32:31 +0000 Subject: [PATCH] MFC r314239: 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 git-svn-id: svn://svn.freebsd.org/base/stable/10@315116 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- rescue/rescue/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rescue/rescue/Makefile b/rescue/rescue/Makefile index 5a79d4546..6981e94e8 100644 --- a/rescue/rescue/Makefile +++ b/rescue/rescue/Makefile @@ -98,7 +98,7 @@ CRUNCH_PROGS_sbin= badsect \ mount_udf mount_unionfs newfs \ newfs_msdos nos-tun ping reboot \ restore rcorder route rtsol savecore \ - spppcontrol swapon sysctl tunefs umount + shutdown spppcontrol swapon sysctl tunefs umount .if ${MK_ATM} != "no" CRUNCH_PROGS_sbin+= atmconfig @@ -185,6 +185,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 -- 2.42.0