From: Michael Tremer Date: Wed, 31 May 2017 20:46:10 +0000 (+0100) Subject: Allow loading library from source tree instead of system X-Git-Tag: 009~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05823c4efd6cdbec23bd504a3c50bf9146c6cae2;p=network.git Allow loading library from source tree instead of system Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.in b/src/functions/functions.in index b8f3e017..20d19e95 100644 --- a/src/functions/functions.in +++ b/src/functions/functions.in @@ -38,6 +38,16 @@ init_run() { VERSION="@PACKAGE_VERSION@" NETWORK_VERSION="${VERSION}" -for file in @networkdir@/functions.*; do - . ${file} +[ -z "${networkdir}" ] && networkdir="@networkdir@" + +# Load entire library +for file in ${networkdir}/functions.*; do + case "${file}" in + *.in) + continue + ;; + *) + . ${file} + ;; + esac done