summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-08-14 03:47:56 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-08-14 03:47:56 +0000
commit0394c8169a0bb7d4347117d42d97ed1a0bec8be6 (patch)
treec2c4c3319345ba1993c718bdf0021041fe49cef4 /etc/inc/config.inc
parentabf3737f4857635775de4b722515448731e3305c (diff)
downloadpfsense-0394c8169a0bb7d4347117d42d97ed1a0bec8be6.zip
pfsense-0394c8169a0bb7d4347117d42d97ed1a0bec8be6.tar.gz
Change detection code to detect <m0n0wall> instead of m0n0wall for config upgrades,.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index f37ae87..40c3396 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -66,7 +66,7 @@ if(file_exists("/debugging")) {
if(file_exists("/cf/conf/config.xml")) {
$config_contents = file_get_contents("/cf/conf/config.xml");
- if(stristr($config_contents, "m0n0wall") == true) {
+ if(stristr($config_contents, "<m0n0wall>") == true) {
/* user has just upgraded to m0n0wall, replace root xml tags */
log_error("Upgrading m0n0wall configuration to pfSense... ");
$config_contents = str_replace("m0n0wall","pfsense", $config_contents);
OpenPOWER on IntegriCloud