svn commit: r315116 - stable/10/rescue/rescue
Ngie Cooper
ngie at FreeBSD.org
Sun Mar 12 04:32:32 UTC 2017
Author: ngie
Date: Sun Mar 12 04:32:31 2017
New Revision: 315116
URL: https://svnweb.freebsd.org/changeset/base/315116
Log:
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
Modified:
stable/10/rescue/rescue/Makefile
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/rescue/rescue/Makefile
==============================================================================
--- stable/10/rescue/rescue/Makefile Sun Mar 12 04:32:15 2017 (r315115)
+++ stable/10/rescue/rescue/Makefile Sun Mar 12 04:32:31 2017 (r315116)
@@ -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
More information about the svn-src-stable
mailing list