From 6280b10e83115be8aea11e89ad424fb04678f4fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Wed, 3 Mar 2010 17:17:41 +0000 Subject: Do not try to upgrade from m0n0 config to pfSense config on every invocation of config.inc but only during bootup, basically this gives a lot of speed up in GUI. --- etc/inc/config.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/inc/config.inc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 60f0668..1dd0d9a 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -83,7 +83,7 @@ if(file_exists("/debugging")) { } if($g['booting']) echo "."; -if(file_exists("/cf/conf/config.xml")) { +if($g['booting'] && file_exists("/cf/conf/config.xml")) { $config_contents = file_get_contents("/cf/conf/config.xml"); if(stristr($config_contents, "") == true) { if($g['booting']) echo "."; @@ -101,7 +101,7 @@ if(file_exists("/cf/conf/config.xml")) { } /* if our config file exists bail out, we're already set. */ -if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) { +else if ($g['booting'] and !file_exists($g['cf_conf_path'] . "/config.xml") ) { if($g['booting']) echo "."; /* find the device where config.xml resides and write out an fstab */ unset($cfgdevice); -- cgit v1.1