From 7b5fa011ac7a9544fe68a9abb2f8ef940d9845f7 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Wed, 11 Dec 2013 17:39:38 -0600 Subject: 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 --- sh/init-common-post.sh.in | 2 +- sh/init.sh.Linux.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/init-common-post.sh.in b/sh/init-common-post.sh.in index 6001fe9..96eeeee 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"/* diff --git a/sh/init.sh.Linux.in b/sh/init.sh.Linux.in index 09bcbdb..9054978 100644 --- a/sh/init.sh.Linux.in +++ b/sh/init.sh.Linux.in @@ -37,7 +37,7 @@ fi # /run is a new directory for storing volatile runtime data. # Read more about /run at https://lwn.net/Articles/436012 -sys="$(rc --sys)" +sys="$(openrc --sys)" if [ ! -d /run ]; then if [ "$sys" = VSERVER ]; then -- cgit v1.2.3