--- env-update.sh.orig 2004-11-15 09:13:03.000000000 -0600 +++ env-update.sh 2004-11-16 08:18:49.035646896 -0600 @@ -3,7 +3,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-src/rc-scripts/sbin/env-update.sh,v 1.5 2004/10/18 17:35:45 vapier Exp $ -source /sbin/functions.sh +source /etc/init.d/functions.sh if [ "${EUID}" -ne 0 ] then @@ -24,21 +24,11 @@ export SVCDIR="${svcdir}" # Only update if files have actually changed -update=1 if [ "$1" == "-u" ] then - update=0 - for config in /etc/env.d - do - if [ "${config}" -nt "${svcdir}/envcache" ] - then - update=1 - break - fi - done + dependencyChanged "${svcdir}/envcache" /etc/env.d && exit 0 shift fi -[ ${update} -eq 0 ] && exit 0 if [ "$#" -ne 0 ] then