summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_backup.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-23 23:40:01 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-23 23:40:01 +0000
commit23be6f1bc1f2915d4a833604cc536ee856cfeaec (patch)
tree0a18f970f2b3788f7f140432fdbc3b74f7081ca0 /usr/local/www/diag_backup.php
parent8cd7e1fa57a5926f23e65b577c36d4ad442d90ab (diff)
downloadpfsense-23be6f1bc1f2915d4a833604cc536ee856cfeaec.zip
pfsense-23be6f1bc1f2915d4a833604cc536ee856cfeaec.tar.gz
When restoring a configuration via the webConfigurator detect that a interface mismatch has occured and redirect the user to the assign interface screen. Once the assign interface Save button has been pressed go ahead and reboot. This might just prevent someone from throwing a fit since they do not have console access.
Diffstat (limited to 'usr/local/www/diag_backup.php')
-rwxr-xr-xusr/local/www/diag_backup.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php
index 2f39422..d881358 100755
--- a/usr/local/www/diag_backup.php
+++ b/usr/local/www/diag_backup.php
@@ -184,6 +184,11 @@ if ($_POST) {
$reboot_needed = true;
}
setup_serial_port();
+ if(is_interface_mismatch() == true) {
+ touch("/var/run/interface_mismatch_reboot_needed");
+ $reboot_needed = false;
+ header("Location: interfaces_assign.php");
+ }
} else {
$input_errors[] = "The configuration could not be restored.";
}
OpenPOWER on IntegriCloud