Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: init.d/
Date: Mon, 05 Jun 2017 17:18:20
Message-Id: 1496681570.1801561c2d36c330df7fd02c7508f503a61ff5ba.williamh@OpenRC
1 commit: 1801561c2d36c330df7fd02c7508f503a61ff5ba
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Fri Jun 2 23:21:53 2017 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 5 16:52:50 2017 +0000
6 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=1801561c
7
8 init.d/bootmisc: use openrc-shutdown instead of halt to write halt record
9
10 This fixes #139 and fixes #128.
11 and fixes #124.
12
13 init.d/bootmisc.in | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16 diff --git a/init.d/bootmisc.in b/init.d/bootmisc.in
17 index 40d3c933..bf79f03d 100644
18 --- a/init.d/bootmisc.in
19 +++ b/init.d/bootmisc.in
20 @@ -241,7 +241,7 @@ stop()
21 {
22 # Write a halt record if we're shutting down
23 if [ "$RC_RUNLEVEL" = shutdown ]; then
24 - [ "$RC_UNAME" = Linux ] && halt -w
25 + [ "$RC_UNAME" = Linux ] && openrc-shutdown -w
26 if [ "$RC_SYS" = OPENVZ ]; then
27 yesno $RC_REBOOT && printf "" >/reboot
28 fi