mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
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:
committed by
Sam James
parent
dc14de4e08
commit
7bfc8e3f21
@@ -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
|
||||
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user