Skip to content

Commit

Permalink
x11-apps/xinit: use /lib/gentoo/functions.sh instead of deprecated /e…
Browse files Browse the repository at this point in the history
…tc/init.d/functions.sh

Also bail out early if the machine is not running OpenRC, with an
appropriate error

Acked-By: Manuel Rüger <[email protected]>

Gentoo-Bug: https://bugs.gentoo.org/504140
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
austin987 committed Oct 18, 2017
1 parent 04291b6 commit 2bb6b9e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions x11-apps/xinit/files/startDM.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
#!/bin/sh
# Copyright 1999-2011 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# 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/gentoo/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
Expand Down

0 comments on commit 2bb6b9e

Please sign in to comment.