summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_assign.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@gmail.com>2011-06-23 14:08:38 -0400
committerScott Ullrich <sullrich@gmail.com>2011-06-23 14:08:38 -0400
commitca4acbcdd84195c9917363fceabcd4b5294bf1d0 (patch)
treea6487d74e703ec9079ca5e212e5b6537084af0bb /usr/local/www/interfaces_assign.php
parentd2a08a06eb568ff9495e8dab0662fdc08f976d93 (diff)
downloadpfsense-ca4acbcdd84195c9917363fceabcd4b5294bf1d0.zip
pfsense-ca4acbcdd84195c9917363fceabcd4b5294bf1d0.tar.gz
After an interface mismatch and apply actually show when we are rebooting instead of the same message that the interface mismatch exists when really the system is rebooting.
Diffstat (limited to 'usr/local/www/interfaces_assign.php')
-rwxr-xr-xusr/local/www/interfaces_assign.php16
1 files changed, 10 insertions, 6 deletions
diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php
index 3e35b0e..88efcbd 100755
--- a/usr/local/www/interfaces_assign.php
+++ b/usr/local/www/interfaces_assign.php
@@ -154,9 +154,10 @@ if (is_array($config['openvpn'])) {
}
if ($_POST['apply']) {
- if (file_exists("/var/run/interface_mismatch_reboot_needed"))
+ if (file_exists("/var/run/interface_mismatch_reboot_needed")) {
system_reboot();
- else {
+ $rebootingnow = true;
+ } else {
write_config();
$retval = 0;
@@ -370,11 +371,14 @@ if ($_GET['act'] == "add" && (count($config['interfaces']) < count($portlist)))
include("head.inc");
if(file_exists("/var/run/interface_mismatch_reboot_needed"))
- if ($_POST)
- $savemsg = gettext("Reboot is needed. Please apply the settings in order to reboot.");
- else
+ if ($_POST) {
+ if($rebootingnow)
+ $savemsg = gettext("The system is now rebooting. Please wait.");
+ else
+ $savemsg = gettext("Reboot is needed. Please apply the settings in order to reboot.");
+ } else {
$savemsg = gettext("Interface mismatch detected. Please resolve the mismatch and click Save. The firewall will reboot afterwards.");
-
+ }
?>
<body link="#0000CC" vlink="#0000CC" alink="#0000CC">
OpenPOWER on IntegriCloud