Lines 1-12
Link Here
|
1 |
#!/bin/sh |
1 |
#!/bin/sh |
2 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Copyright 1999-2017 Gentoo Foundation |
3 |
# Distributed under the terms of the GNU General Public License, v2 |
3 |
# Distributed under the terms of the GNU General Public License, v2 |
4 |
|
4 |
|
5 |
# We need to source /etc/profile for stuff like $LANG to work |
5 |
# We need to source /etc/profile for stuff like $LANG to work |
6 |
# bug #10190. |
6 |
# bug #10190. |
7 |
. /etc/profile |
7 |
. /etc/profile |
8 |
|
8 |
|
9 |
. /etc/init.d/functions.sh |
9 |
. /lib/gentoo/functions.sh |
|
|
10 |
|
11 |
# Bail out early if on a non-OpenRC system: |
12 |
if [ ! -d /run/openrc ]; then |
13 |
eerror "$0 should only be used on OpenRC systems" |
14 |
fi |
10 |
|
15 |
|
11 |
# baselayout-1 compat |
16 |
# baselayout-1 compat |
12 |
if ! type get_options >/dev/null 2>/dev/null ; then |
17 |
if ! type get_options >/dev/null 2>/dev/null ; then |
13 |
- |
|
|