saving uncommitted changes in /etc prior to emerge run
This commit is contained in:
13
init.d/shutdown.sh
Executable file
13
init.d/shutdown.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
# Copyright 1999-2006 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
opts="-d"
|
||||
[ "${INIT_HALT}" != "HALT" ] && opts="${opts}p"
|
||||
[ "${RC_DOWN_INTERFACE}" = "yes" ] && opts="${opts}i"
|
||||
[ "${RC_DOWN_HARDDISK}" = "yes" ] && opts="${opts}h"
|
||||
|
||||
/sbin/halt "${opts}"
|
||||
|
||||
# hmm, if the above failed, that's kind of odd ...
|
||||
# so let's force a halt
|
||||
/sbin/halt -f
|
||||
Reference in New Issue
Block a user