aboutsummaryrefslogtreecommitdiff
path: root/sh/init-common-post.sh.in
diff options
context:
space:
mode:
authorWilliam Hubbs <w.d.hubbs@gmail.com>2013-12-11 17:39:38 -0600
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-12-12 18:31:29 -0600
commit7b5fa011ac7a9544fe68a9abb2f8ef940d9845f7 (patch)
treeb8c99079eac82e8c3a7c43b8d65585eb3b9a1f7f /sh/init-common-post.sh.in
parent09733d3fae77265263b1e918b9fce66a1c7a519a (diff)
Rename the rc binary to openrc
Debian requested this rename due to the "rc" binary conflicting with the "rc" binary from the plan 9 shell. We also add a deprecation warning to the binary when it is run as rc to encourage users to switch to openrc instead. X-Gentoo-Bug: 493958 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493958
Diffstat (limited to 'sh/init-common-post.sh.in')
-rw-r--r--sh/init-common-post.sh.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/init-common-post.sh.in b/sh/init-common-post.sh.in
index 6001fe9c..96eeeeef 100644
--- a/sh/init-common-post.sh.in
+++ b/sh/init-common-post.sh.in
@@ -6,7 +6,7 @@
# the old service state data
: ${RC_LIBEXECDIR:=@LIBEXECDIR@}
: ${RC_SVCDIR:=@LIBEXECDIR@/init.d}
-case "$(rc --sys)" in
+case "$(openrc --sys)" in
OPENVZ|VSERVER) rm -rf "$RC_SVCDIR"/*;;
*) if mountinfo --quiet "$RC_SVCDIR"; then
rm -rf "$RC_SVCDIR"/*