Only generate dependencies for Gentoo scripts, #190547.

This commit is contained in:
Roy Marples 2007-08-31 16:21:19 +00:00
parent 6cf2085488
commit a9ebc7a2af
2 changed files with 10 additions and 3 deletions

View File

@ -1,6 +1,10 @@
# ChangeLog for Gentoo System Intialization ("rc") scripts # ChangeLog for Gentoo System Intialization ("rc") scripts
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPLv2
31 Aug 2007; Roy Marples <uberlord@gentoo.org>:
Only generate dependencies for Gentoo scripts, #190547.
28 Aug 2007; Roy Marples <uberlord@gentoo.org>: 28 Aug 2007; Roy Marples <uberlord@gentoo.org>:
Undocument pause action, fix --nodeps and --ifstarted, #190045. Undocument pause action, fix --nodeps and --ifstarted, #190045.

View File

@ -30,9 +30,12 @@ depend() {
cd /etc/init.d cd /etc/init.d
for SVCNAME in * ; do for SVCNAME in * ; do
[ -x "${SVCNAME}" ] || continue [ -x "${SVCNAME}" ] || continue
case "${SVCNAME}" in
*.sh) continue ;; # Only generate dependencies for Gentoo runscripts
esac local one= two=
read one two < "${SVCNAME}"
[ "${one}" = "#!/sbin/runscript" ] || continue
unset one two
SVCNAME=${SVCNAME##*/} SVCNAME=${SVCNAME##*/}
( (