diff options
author | Roy Marples <roy@marples.name> | 2008-05-01 15:18:34 +0000 |
---|---|---|
committer | Roy Marples <roy@marples.name> | 2008-05-01 15:18:34 +0000 |
commit | d384502e57ba25f5c97e5badd8113d92447f1d8f (patch) | |
tree | c1320393c92dbd2b4e5118d4ccf99dcdf9dbc6bd /sh/gendepends.sh.in | |
parent | bdaca0baf5a87eb816cfc6de568839cfaf5db48b (diff) |
There could be a space between #! and /sbin/runscript, Gentoo #218001.
Diffstat (limited to 'sh/gendepends.sh.in')
-rw-r--r-- | sh/gendepends.sh.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in index 5c555ade..1ae2e6d7 100644 --- a/sh/gendepends.sh.in +++ b/sh/gendepends.sh.in @@ -51,9 +51,11 @@ do [ -x "${RC_SERVICE}" -a -f "${RC_SERVICE}" ] || continue # Only generate dependencies for runscripts - read one two < "${RC_SERVICE}" - [ "${one}" = "#!@PREFIX@/sbin/runscript" ] || continue - unset one two + read one two three < "${RC_SERVICE}" + [ "${one}" = "#!@PREFIX@/sbin/runscript" ] || \ + [ "${one}" = "#!" -a "${two}" = "@PREFIX@/sbin/runscript" ] || \ + continue + unset one two three export RC_SVCNAME=${RC_SERVICE##*/} |