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>
This commit is contained in:
parent
8c90042dee
commit
8a44067838
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright 1992-2012 FreeBSD Project
|
||||
# Released under the 2-clause BSD license
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
@ -17,7 +17,7 @@ start()
|
||||
{
|
||||
ebegin "Setting the local clock based on last shutdown time"
|
||||
if ! swclock 2> /dev/null; then
|
||||
swclock --warn @PREFIX@/sbin/runscript
|
||||
swclock --warn @SBINDIR@/runscript
|
||||
fi
|
||||
eend $?
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright 1999-2012 Gentoo Foundation
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2008 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!@PREFIX@/sbin/runscript
|
||||
#!@SBINDIR@/runscript
|
||||
# Copyright (c) 2008-2009 Roy Marples <roy@marples.name>
|
||||
# Released under the 2-clause BSD license.
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user