summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-11-18 23:00:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-11-18 23:00:54 +0000
commita370334ed9419ca72cea4bad965ac18e1694b0e4 (patch)
tree2c2ea93d514d722d60def97afb612a0107b83487 /etc/inc/config.inc
parentfac17748b871c7db9cc206aa00a9b3f89b1f0069 (diff)
downloadpfsense-a370334ed9419ca72cea4bad965ac18e1694b0e4.zip
pfsense-a370334ed9419ca72cea4bad965ac18e1694b0e4.tar.gz
Alert when upgrading m0n0wall configuration
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index c8ce335..2ddff26 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -65,10 +65,12 @@ if(file_exists("/debugging"))
$config_contents = file_get_contents("/cf/conf/config.xml");
if(stristr($config_contents, "m0n0wall") == true) {
/* user has just upgraded to m0n0wall, replace root xml tags */
+ echo "Upgrading m0n0wall configuration to pfSense... ";
$config_contents = str_replace("m0n0wall","pfsense");
$fd = fopen("/cf/conf/config.xml", "w");
fwrite($fd, $config_contents);
- fclose($fd);
+ fclose($fd);
+ echo "done.";
}
/* if our config file exists bail out, we're already set. */
OpenPOWER on IntegriCloud