1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Duncan wrote: |
5 |
> # we need PORTAGE_NICENESSS from make.conf to run eupdatedb |
6 |
> portnice=$(source /etc/make.conf;echo $PORTAGE_NICENESS) |
7 |
> [ -z $portnice ] && portnice=0 |
8 |
> nice -n${portnice} eupdatedb & |
9 |
|
10 |
Just as a suggestion, you can get PORTAGE_NICENESS (and any other |
11 |
environment variable) directly from portage: |
12 |
portnice=$(portageq envvar PORTAGE_NICENESS) |
13 |
|
14 |
This lets portage scan all of its configuration files (make.globals, |
15 |
make.conf, and the various profile versions), and will report the value |
16 |
that portage actually uses. |
17 |
|
18 |
- -- |
19 |
ABCD |
20 |
-----BEGIN PGP SIGNATURE----- |
21 |
Version: GnuPG v2.0.9 (GNU/Linux) |
22 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
23 |
|
24 |
iEYEARECAAYFAkliimwACgkQOypDUo0oQOrP4wCgkj18BJDH61Pk33gM9sD9r4zA |
25 |
d4YAoIMI8sguWpkgTX6CLedNL9jJSAVz |
26 |
=IIKK |
27 |
-----END PGP SIGNATURE----- |