diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 00:19:22 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-20 00:19:22 +0000 |
commit | 6e8c1d1c078e7c432699553b0c6178c166239a0b (patch) | |
tree | f30f4e1f67e94011b180a9981748b3ad9ed9fcce /etc | |
parent | 35ff9380b5c0c862cb4e43e4c76b5f967b392aa4 (diff) | |
download | pfsense-6e8c1d1c078e7c432699553b0c6178c166239a0b.zip pfsense-6e8c1d1c078e7c432699553b0c6178c166239a0b.tar.gz |
Do not modify fstab if we are on a wrap
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 7 |
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; } |