Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Feb 2017 03:11:08 +0000 (UTC)
From:      Ngie Cooper <ngie@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314239 - head/rescue/rescue
Message-ID:  <201702250311.v1P3B89W008306@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ngie
Date: Sat Feb 25 03:11:08 2017
New Revision: 314239
URL: https://svnweb.freebsd.org/changeset/base/314239

Log:
  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

Modified:
  head/rescue/rescue/Makefile

Modified: head/rescue/rescue/Makefile
==============================================================================
--- head/rescue/rescue/Makefile	Sat Feb 25 01:53:45 2017	(r314238)
+++ head/rescue/rescue/Makefile	Sat Feb 25 03:11:08 2017	(r314239)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702250311.v1P3B89W008306>