Lines 3-9
Link Here
|
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 |
# $Header: /var/cvsroot/gentoo-src/rc-scripts/sbin/env-update.sh,v 1.5 2004/10/18 17:35:45 vapier Exp $ |
4 |
# $Header: /var/cvsroot/gentoo-src/rc-scripts/sbin/env-update.sh,v 1.5 2004/10/18 17:35:45 vapier Exp $ |
5 |
|
5 |
|
6 |
source /sbin/functions.sh |
6 |
source /etc/init.d/functions.sh |
7 |
|
7 |
|
8 |
if [ "${EUID}" -ne 0 ] |
8 |
if [ "${EUID}" -ne 0 ] |
9 |
then |
9 |
then |
Lines 24-44
Link Here
|
24 |
export SVCDIR="${svcdir}" |
24 |
export SVCDIR="${svcdir}" |
25 |
|
25 |
|
26 |
# Only update if files have actually changed |
26 |
# Only update if files have actually changed |
27 |
update=1 |
|
|
28 |
if [ "$1" == "-u" ] |
27 |
if [ "$1" == "-u" ] |
29 |
then |
28 |
then |
30 |
update=0 |
29 |
dependencyChanged "${svcdir}/envcache" /etc/env.d && exit 0 |
31 |
for config in /etc/env.d |
|
|
32 |
do |
33 |
if [ "${config}" -nt "${svcdir}/envcache" ] |
34 |
then |
35 |
update=1 |
36 |
break |
37 |
fi |
38 |
done |
39 |
shift |
30 |
shift |
40 |
fi |
31 |
fi |
41 |
[ ${update} -eq 0 ] && exit 0 |
|
|
42 |
|
32 |
|
43 |
if [ "$#" -ne 0 ] |
33 |
if [ "$#" -ne 0 ] |
44 |
then |
34 |
then |