aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-08-31 16:21:19 +0000
committerRoy Marples <roy@marples.name>2007-08-31 16:21:19 +0000
commita9ebc7a2afe7db48e4dee6cbb694d6c956413472 (patch)
treefd2a33cc9d39b8d73908585ced91e894913b56d0
parent6cf208548802127658bdb8e774fe189aeb798be2 (diff)
Only generate dependencies for Gentoo scripts, #190547.
-rw-r--r--ChangeLog4
-rwxr-xr-xsh/gendepends.sh9
2 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 24ffb0f9..5a84ee52 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for Gentoo System Intialization ("rc") scripts
# 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>:
Undocument pause action, fix --nodeps and --ifstarted, #190045.
diff --git a/sh/gendepends.sh b/sh/gendepends.sh
index d970fa5d..349202cd 100755
--- a/sh/gendepends.sh
+++ b/sh/gendepends.sh
@@ -30,9 +30,12 @@ depend() {
cd /etc/init.d
for SVCNAME in * ; do
[ -x "${SVCNAME}" ] || continue
- case "${SVCNAME}" in
- *.sh) continue ;;
- esac
+
+ # Only generate dependencies for Gentoo runscripts
+ local one= two=
+ read one two < "${SVCNAME}"
+ [ "${one}" = "#!/sbin/runscript" ] || continue
+ unset one two
SVCNAME=${SVCNAME##*/}
(