gui-libs/display-manager-init: Load functions.sh from libexec.

Closes: https://bugs.gentoo.org/950508
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev>
Closes: https://github.com/gentoo/gentoo/pull/40875
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Anna (navi) Figueiredo Gomes
2025-03-03 19:29:29 +01:00
committed by Sam James
parent dc14de4e08
commit 7bfc8e3f21
2 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2023 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7

View File

@@ -12,9 +12,18 @@
# Bail out early if on a non-OpenRC system:
if [ ! -d /run/openrc ]; then
eerror "$0 should only be used on OpenRC systems"
exit 1
fi
. /lib/rc/sh/functions.sh
# rc_libexec moved in >=openrc-0.56
if [ -e /lib/rc/sh/functions.sh ]; then
. /lib/rc/sh/functions.sh
elif [ -e /usr/libexec/rc/sh/functions.sh ]; then
. /usr/libexec/rc/sh/functions.sh
else
eerror "Unable to find rc/sh/functions.sh"
exit 1
fi
export RC_SVCNAME=display-manager
EXEC="$(get_options service)"