summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_lan.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-24 19:25:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-24 19:25:09 +0000
commitb5933544cdb5ae44bc9a1339a42d7e1bfb82cc1b (patch)
treedb73cdc8b4d7e809d0eea761411533ecbbe1779d /usr/local/www/interfaces_lan.php
parent7f1e27b36f052c8038544a2ac0f246be23eb3026 (diff)
downloadpfsense-b5933544cdb5ae44bc9a1339a42d7e1bfb82cc1b.zip
pfsense-b5933544cdb5ae44bc9a1339a42d7e1bfb82cc1b.tar.gz
Eliminate reboot needed notice. Reapply all needed services at the end of the script to avoid breaking the output during ip change.
Diffstat (limited to 'usr/local/www/interfaces_lan.php')
-rwxr-xr-xusr/local/www/interfaces_lan.php35
1 files changed, 27 insertions, 8 deletions
diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php
index 73de5d3..1501e2f 100755
--- a/usr/local/www/interfaces_lan.php
+++ b/usr/local/www/interfaces_lan.php
@@ -98,17 +98,12 @@ if ($_POST) {
write_config($changedesc);
- $savemsg = get_std_save_message(0);
-
- /* setup carp interfaces */
- interfaces_carp_configure();
-
- /* bring up carp interfaces */
- interfaces_carp_bringup();
-
+
if ($dhcpd_was_enabled)
$savemsg .= "<br>Note that the DHCP server has been disabled.<br>Please review its configuration " .
"and enable it again prior to rebooting.";
+ else
+ $savemsg = "The changes have been applied. You may need to correct the web browsers ip address.";
}
}
@@ -205,3 +200,27 @@ function ipaddr_change() {
<?php include("fend.inc"); ?>
</body>
</html>
+
+<?php
+
+if ($_POST) {
+
+ /* Change these items late in the script
+ * so the script will fully complete to
+ * the users web browser
+ */
+
+ /* set up LAN interface */
+ interfaces_lan_configure();
+
+ interfaces_vlan_configure();
+
+ /* setup carp interfaces */
+ interfaces_carp_configure();
+
+ /* bring up carp interfaces */
+ interfaces_carp_bringup();
+
+}
+
+?> \ No newline at end of file
OpenPOWER on IntegriCloud