summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-28 19:04:34 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-28 19:04:34 -0500
commit690d24af8cd54ac4555087ed0392d53ea27e43ee (patch)
tree00ee0248155f021cf12fb88cbbcccb8b9ebf34b5
parent8850a528f9bc5965eb889290fdf57b7acb1edee1 (diff)
downloadpfsense-690d24af8cd54ac4555087ed0392d53ea27e43ee.zip
pfsense-690d24af8cd54ac4555087ed0392d53ea27e43ee.tar.gz
Add pfSsh.php externalconfiglocator playback script
-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