summaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorAndrew Gregory <andrew.gregory.8@gmail.com>2013-02-12 17:09:50 -0500
committerWilliam Hubbs <w.d.hubbs@gmail.com>2013-02-23 20:30:39 -0600
commit8a44067838e268db88ea2158258f8006cb1344b7 (patch)
treee04f4dd3248600cc82cb2b3a3c8f8eda7b49e90c /sh
parent8c90042dee7cd0d7960c86b9fcfac5f1afec5784 (diff)
downloadopenrc-8a44067838e268db88ea2158258f8006cb1344b7.tar.gz
openrc-8a44067838e268db88ea2158258f8006cb1344b7.tar.bz2
openrc-8a44067838e268db88ea2158258f8006cb1344b7.tar.xz
Fix shebangs in services to point to the correct location of runscript
SBINDIR and BINDIR can be set independently of PREFIX. This fixes broken shebangs in service files when SBINDIR is set to something other than PREFIX/sbin Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
Diffstat (limited to 'sh')
-rw-r--r--sh/gendepends.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in
index f78f3d3..461c688 100644
--- a/sh/gendepends.sh.in
+++ b/sh/gendepends.sh.in
@@ -53,8 +53,8 @@ do
# Only generate dependencies for runscripts
read one two three <"$RC_SERVICE"
- [ "$one" = "#!@PREFIX@/sbin/runscript" ] || \
- [ "$one" = "#!" -a "$two" = "@PREFIX@/sbin/runscript" ] || \
+ [ "$one" = "#!@SBINDIR@/runscript" ] || \
+ [ "$one" = "#!" -a "$two" = "@SBINDIR@/runscript" ] || \
continue
unset one two three