summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2010-12-28 22:39:51 +0000
committerErmal <eri@pfsense.org>2010-12-28 22:39:51 +0000
commit66bcba1bcd80677a38d63abbec5fb8316d55b7f4 (patch)
tree2b2da88ac7a344464814582159eb62623d448cda /usr/local/www/diag_backup.php
parentc3583058a0c2cd89ceacbbbcceb68a976e07a890 (diff)
downloadpfsense-66bcba1bcd80677a38d63abbec5fb8316d55b7f4.zip
pfsense-66bcba1bcd80677a38d63abbec5fb8316d55b7f4.tar.gz
Ticket #802. During a config restore detect if the vlan interfaces need reassignment too. This might be problematic for other type of interfaces on 2.0!
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 410fb0b..6ff65fe 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -451,6 +451,13 @@ if ($_POST) {
header("Location: interfaces_assign.php");
exit;
}
+ if (is_interface_vlan_mismatch() == true) {
+ touch("/var/run/interface_mismatch_reboot_needed");
+ clear_subsystem_dirty("restore");
+ convert_config();
+ header("Location: interfaces_assign.php");
+ exit;
+ }
} else {
$input_errors[] = gettext("The configuration could not be restored.");
}
OpenPOWER on IntegriCloud