summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-24 23:40:10 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-24 23:40:10 +0000
commit4f1252d594ccb98c568805dd530dede38f70e1e2 (patch)
tree1ff1780376be48e326517c9ebbb6025720a5e0a8
parent835c9f4a51b3076413563019cae0e50b81a6955f (diff)
downloadpfsense-4f1252d594ccb98c568805dd530dede38f70e1e2.zip
pfsense-4f1252d594ccb98c568805dd530dede38f70e1e2.tar.gz
* Unlink config.cache and reload configuration for reload_all and reload_intrefaces
-rw-r--r--etc/inc/pfsense-utils.inc16
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index 1024fc5..69a19c9 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -1014,6 +1014,14 @@ function strncpy(&$dst, $src, $length) {
* none
******/
function reload_interfaces() {
+ global $config, $g;
+
+ if(file_exists("{$g['tmp_path']}/config.cache"))
+ unlink("{$g['tmp_path']}/config.cache");
+
+ /* parse config.xml again */
+ parse_config_bootup();
+
/* set up LAN interface */
interfaces_lan_configure();
@@ -1042,6 +1050,14 @@ function reload_interfaces() {
* none
******/
function reload_all() {
+ global $config, $g;
+
+ if(file_exists("{$g['tmp_path']}/config.cache"))
+ unlink("{$g['tmp_path']}/config.cache");
+
+ /* parse config.xml again */
+ parse_config_bootup();
+
/* set up our timezone */
system_timezone_configure();
OpenPOWER on IntegriCloud