summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-10 00:08:04 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-10 00:08:04 +0000
commit6b524b567d2303838242823545afed98db81548e (patch)
treeec23d7da848a2abb46246c0aa2a718ab6c040f8b /usr
parent14e56d9c2fc0bd76194e3e8bc50c1a6cfbc0dabd (diff)
downloadpfsense-6b524b567d2303838242823545afed98db81548e.zip
pfsense-6b524b567d2303838242823545afed98db81548e.tar.gz
Only convert config on m0n0wall upgrade
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/diag_backup.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 62fafee..d4dbca3 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -151,23 +151,22 @@ if ($_POST) {
/* this will be picked up by /index.php */
conf_mount_rw();
touch("/needs_package_sync");
-
$reloadall = true;
$savemsg = "The configuration has been restored. The firewall is now rebooting.";
/* remove cache, we will force a config reload */
if(file_exists("/tmp/config.cache"))
unlink("/tmp/config.cache");
parse_config(false);
- /* force a configuration upgrade */
- convert_config();
if($m0n0wall_upgrade == true) {
+ /* force a configuration upgrade */
+ convert_config();
if($config['system']['gateway'] <> "") {
$config['interfaces']['wan']['gateway'] = $config['system']['gateway'];
}
unset($config['shaper']);
+ write_config();
+ conf_mount_ro();
}
- write_config();
- conf_mount_ro();
} else {
$input_errors[] = "The configuration could not be restored.";
}
OpenPOWER on IntegriCloud