There could be a space between #! and /sbin/runscript, Gentoo #218001.
This commit is contained in:
parent
bdaca0baf5
commit
d384502e57
@ -51,9 +51,11 @@ do
|
|||||||
[ -x "${RC_SERVICE}" -a -f "${RC_SERVICE}" ] || continue
|
[ -x "${RC_SERVICE}" -a -f "${RC_SERVICE}" ] || continue
|
||||||
|
|
||||||
# Only generate dependencies for runscripts
|
# Only generate dependencies for runscripts
|
||||||
read one two < "${RC_SERVICE}"
|
read one two three < "${RC_SERVICE}"
|
||||||
[ "${one}" = "#!@PREFIX@/sbin/runscript" ] || continue
|
[ "${one}" = "#!@PREFIX@/sbin/runscript" ] || \
|
||||||
unset one two
|
[ "${one}" = "#!" -a "${two}" = "@PREFIX@/sbin/runscript" ] || \
|
||||||
|
continue
|
||||||
|
unset one two three
|
||||||
|
|
||||||
export RC_SVCNAME=${RC_SERVICE##*/}
|
export RC_SVCNAME=${RC_SERVICE##*/}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user