From f03a640f6af7cef470c452970f6031d41a61f227 Mon Sep 17 00:00:00 2001 From: "Anna (navi) Figueiredo Gomes" Date: Sun, 14 Jul 2024 17:41:47 +0200 Subject: openrc-run: allow multiplexed symlinks to live outside init.d use the realpath of the target to locate which sysconf dir it's in, using it as a base to load the config file. the service path is then normalized from the symlink without dereferencing it. Signed-off-by: Anna (navi) Figueiredo Gomes --- sh/openrc-run.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh/openrc-run.sh.in') diff --git a/sh/openrc-run.sh.in b/sh/openrc-run.sh.in index cd81f3fb..b1df1fd5 100644 --- a/sh/openrc-run.sh.in +++ b/sh/openrc-run.sh.in @@ -220,7 +220,7 @@ if [ -d "@SYSCONFDIR@/rc.conf.d" ]; then done fi -_conf_d=${RC_SERVICE%/*}/../conf.d +_conf_d="${RC_SYSCONF_DIR}/conf.d" # If we're net.eth0 or openvpn.work then load net or openvpn config _c=${RC_SVCNAME%%.*} if [ -n "$_c" -a "$_c" != "$RC_SVCNAME" ]; then -- cgit v1.2.3