From 8a44067838e268db88ea2158258f8006cb1344b7 Mon Sep 17 00:00:00 2001 From: Andrew Gregory Date: Tue, 12 Feb 2013 17:09:50 -0500 Subject: 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 --- sh/gendepends.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sh') diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in index f78f3d32..461c6882 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 -- cgit v1.2.3