summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-11-28 14:03:33 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-11-28 14:03:51 -0500
commit206f684d915fffb3900bb6537c037cbd3da257f8 (patch)
tree8c01ff8c1767dd2e41d1132d8b1648662772858b /etc/rc
parent0ba17c67a0d79b8e87884669c8b456f7515a884e (diff)
downloadpfsense-206f684d915fffb3900bb6537c037cbd3da257f8.zip
pfsense-206f684d915fffb3900bb6537c037cbd3da257f8.tar.gz
Adding external configuration loader which will look on all found disks except bootup disk for config.xml. If tconfig.xml is found on an external disk then it tests the roobobj to ensure its a valid file then calls test_config() to ensure it is a valid xml file. Once the file is validated a backup_config() is called to backup the current configuration and finally the file is installed using restore_backup()
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/rc b/etc/rc
index ab1b460..88813f5 100755
--- a/etc/rc
+++ b/etc/rc
@@ -342,6 +342,21 @@ cap_mkdb /etc/login.conf
# /usr/local/etc/php.ini and /usr/local/lib/php.ini
/etc/rc.php_ini_setup
+# Launch external configuration loader for supported platforms
+if [ "$PLATFORM" = "embedded" ]; then
+ /etc/ecl.php
+fi
+
+# Launch external configuration loader for supported platforms
+if [ "$PLATFORM" = "nanobsd" ]; then
+ /etc/ecl.php
+fi
+
+# Launch external configuration loader for supported platforms
+if [ "$PLATFORM" = "pfSense" ]; then
+ /etc/ecl.php
+fi
+
nohup /usr/bin/nice -n20 /usr/local/sbin/check_reload_status
# let the PHP-based configuration subsystem set up the system now
OpenPOWER on IntegriCloud