diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 19:25:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-07-24 19:25:09 +0000 |
commit | b5933544cdb5ae44bc9a1339a42d7e1bfb82cc1b (patch) | |
tree | db73cdc8b4d7e809d0eea761411533ecbbe1779d /usr/local/www | |
parent | 7f1e27b36f052c8038544a2ac0f246be23eb3026 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/www/interfaces_lan.php | 35 |
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 |