summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xetc/ecl.php1
-rw-r--r--etc/phpshellsessions/externalconfiglocator5
-rwxr-xr-xetc/rc2
3 files changed, 6 insertions, 2 deletions
diff --git a/etc/ecl.php b/etc/ecl.php
index 5026800..d879266 100755
--- a/etc/ecl.php
+++ b/etc/ecl.php
@@ -1,4 +1,3 @@
-#!/usr/local/bin/php -q
<?php
/*
external config loader
diff --git a/etc/phpshellsessions/externalconfiglocator b/etc/phpshellsessions/externalconfiglocator
new file mode 100644
index 0000000..8a60867
--- /dev/null
+++ b/etc/phpshellsessions/externalconfiglocator
@@ -0,0 +1,5 @@
+global $config;
+
+$config = parse_config(true);
+
+require("/etc/ecl.php");
diff --git a/etc/rc b/etc/rc
index 88813f5..ebe01f7 100755
--- a/etc/rc
+++ b/etc/rc
@@ -354,7 +354,7 @@ fi
# Launch external configuration loader for supported platforms
if [ "$PLATFORM" = "pfSense" ]; then
- /etc/ecl.php
+ /usr/local/bin/php -q /etc/ecl.php
fi
nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status
OpenPOWER on IntegriCloud