diff options
Diffstat (limited to 'x11-apps/xinit/files/startDM.sh')
-rw-r--r-- | x11-apps/xinit/files/startDM.sh | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/x11-apps/xinit/files/startDM.sh b/x11-apps/xinit/files/startDM.sh index e2da6098d6a0..640bb24b7a26 100644 --- a/x11-apps/xinit/files/startDM.sh +++ b/x11-apps/xinit/files/startDM.sh @@ -1,22 +1,23 @@ #!/bin/sh -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License, v2 # We need to source /etc/profile for stuff like $LANG to work # bug #10190. . /etc/profile -. /etc/init.d/functions.sh +. /lib/rc/sh/functions.sh + +# Bail out early if on a non-OpenRC system: +if [ ! -d /run/openrc ]; then + eerror "$0 should only be used on OpenRC systems" +fi # baselayout-1 compat if ! type get_options >/dev/null 2>/dev/null ; then [ -r "${svclib}"/sh/rc-services.sh ] && . "${svclib}"/sh/rc-services.sh fi -# Great new Gnome2 feature, AA -# We enable this by default -export GDK_USE_XFT=1 - export RC_SVCNAME=xdm EXEC="$(get_options service)" NAME="$(get_options name)" |