diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-11-18 23:00:54 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-11-18 23:00:54 +0000 |
commit | a370334ed9419ca72cea4bad965ac18e1694b0e4 (patch) | |
tree | 2c2ea93d514d722d60def97afb612a0107b83487 /etc/inc | |
parent | fac17748b871c7db9cc206aa00a9b3f89b1f0069 (diff) | |
download | pfsense-a370334ed9419ca72cea4bad965ac18e1694b0e4.zip pfsense-a370334ed9419ca72cea4bad965ac18e1694b0e4.tar.gz |
Alert when upgrading m0n0wall configuration
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/config.inc | 4 |
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. */ |