commit:     efa9ba485d9328f780f3e60dc18339c75974c6c6
Author:     William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
AuthorDate: Mon Oct  9 20:54:06 2017 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Oct  9 20:54:06 2017 +0000
URL:        https://gitweb.gentoo.org/proj/openrc.git/commit/?id=efa9ba48

init.d/sysfs.in: fix reference to RC_LIBEXECDIR

The sysfs init script referred to @LIBEXECDIR@ before this change, but
it is better to refer to RC_LIBEXECDIR so that we get rid of a sed
substitution.

 init.d/sysfs.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.d/sysfs.in b/init.d/sysfs.in
index 23e8821c..892528ca 100644
--- a/init.d/sysfs.in
+++ b/init.d/sysfs.in
@@ -118,7 +118,7 @@ cgroup1_base()
        fi
 
        if ! mountinfo -q /sys/fs/cgroup/openrc; then
-               local agent="@LIBEXECDIR@/sh/cgroup-release-agent.sh"
+               local agent="${RC_LIBEXECDIR}/sh/cgroup-release-agent.sh"
                mkdir /sys/fs/cgroup/openrc
                mount -n -t cgroup \
                        -o 
none,${sysfs_opts},name=openrc,release_agent="$agent" \

Reply via email to