]> git.ipfire.org Git - network.git/commitdiff
Allow loading library from source tree instead of system
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 May 2017 20:46:10 +0000 (21:46 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 May 2017 20:46:10 +0000 (21:46 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.in

index b8f3e0176ab45e8edf3172a0a738c00fd0bbf92b..20d19e95196fbefb9f315b74c0725c7d6cdaa20c 100644 (file)
@@ -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