summaryrefslogtreecommitdiff
path: root/sh/runscript.sh.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-02 21:14:01 +0000
committerRoy Marples <roy@marples.name>2008-03-02 21:14:01 +0000
commit67c5fd6bb8f1d489f7dd012a63a370f20fbe02da (patch)
treecf413352b5ec98209db226158b2a5113ce14936c /sh/runscript.sh.in
parenta12dbdc6c93a7d63591610378e3e570b7c7d2143 (diff)
downloadopenrc-67c5fd6bb8f1d489f7dd012a63a370f20fbe02da.tar.gz
openrc-67c5fd6bb8f1d489f7dd012a63a370f20fbe02da.tar.bz2
openrc-67c5fd6bb8f1d489f7dd012a63a370f20fbe02da.tar.xz
Ensure that our scripts call prefixed runscript.
Diffstat (limited to 'sh/runscript.sh.in')
-rw-r--r--sh/runscript.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in
index 6b8c3db..df50e88 100644
--- a/sh/runscript.sh.in
+++ b/sh/runscript.sh.in
@@ -4,7 +4,7 @@
# Copyright 2007-2008 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license.
-. /etc/init.d/functions.sh
+. @PREFIX@/etc/init.d/functions.sh
. "${RC_LIBDIR}"/sh/rc-functions.sh
# Support LiveCD foo
@@ -59,7 +59,7 @@ elif [ -e "/etc/conf.d/${SVCNAME}" ]; then
fi
# Load any system overrides
-[ -e /etc/rc.conf ] && . /etc/rc.conf
+[ -e @PREFIX@/etc/rc.conf ] && . @PREFIX@/etc/rc.conf
# Apply any ulimit defined
[ -n "${rc_ulimit:-${RC_ULIMIT}}" ] && ulimit ${rc_ulimit:-${RC_ULIMIT}}