Lines 5-17
Link Here
|
5 |
# Author: Karl Trygve Kalleberg <karltk@gentoo.org> |
5 |
# Author: Karl Trygve Kalleberg <karltk@gentoo.org> |
6 |
# Rewritten from the old, Perl-based emerge-webrsync script |
6 |
# Rewritten from the old, Perl-based emerge-webrsync script |
7 |
|
7 |
|
8 |
if [ -z "$PULLED_NICENESS" ]; then |
8 |
# If PORTAGE_NICENESS is overriden via the env then it will |
9 |
PULLED_NICENESS="$(/usr/lib/portage/bin/portageq envvar PORTAGE_NICENESS)" |
9 |
# still pass through the portageq call and override properly. |
10 |
if [ -n "$PULLED_NICENESS" ]; then |
10 |
PORTAGE_NICENESS="$(/usr/lib/portage/bin/portageq envvar PORTAGE_NICENESS)" |
11 |
export PULLED_NICENESS |
11 |
if [ -n "${PORTAGE_NICENESS}" ]; then |
12 |
exec nice -n $PORTAGE_NICENESS "$0" "$@" |
12 |
renice $PORTAGE_NICENESS $$ > /dev/null |
13 |
echo "failed pulling PORTAGE_NICENESS, disabling" |
|
|
14 |
fi |
15 |
fi |
13 |
fi |
16 |
|
14 |
|
17 |
GENTOO_MIRRORS="${GENTOO_MIRRORS} $(/usr/lib/portage/bin/portageq gentoo_mirrors)" |
15 |
GENTOO_MIRRORS="${GENTOO_MIRRORS} $(/usr/lib/portage/bin/portageq gentoo_mirrors)" |