summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc7
1 files changed, 3 insertions, 4 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index b057157..6241927 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -43,7 +43,8 @@ if (file_exists("{$g['etc_path']}/platform")) {
$g['platform'] = "unknown";
}
-if ($g['booting']) {
+/* if our config file exists bail out, we're already set. */
+if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) {
/* find the device where config.xml resides and write out an fstab */
unset($cfgdevice);
@@ -155,9 +156,7 @@ if (!$noparseconfig) {
echo "file is inserted. If it isn't, your configuration changes will be lost\n";
echo "on reboot.\n";
} else {
- echo "XML configuration {$g['conf_path']}/config.xml file not found. pfSense cannot continue booting.\n";
- sleep(5);
- echo "\n\nThe system is now halting.\n\n";
+ echo "XML configuration file not found. pfSense cannot continue booting.\n";
mwexec("/sbin/halt");
exit;
}
OpenPOWER on IntegriCloud