From a9ebc7a2afe7db48e4dee6cbb694d6c956413472 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 31 Aug 2007 16:21:19 +0000 Subject: Only generate dependencies for Gentoo scripts, #190547. --- sh/gendepends.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sh') 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##*/} ( -- cgit v1.2.3