From b5933544cdb5ae44bc9a1339a42d7e1bfb82cc1b Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 24 Jul 2005 19:25:09 +0000 Subject: Eliminate reboot needed notice. Reapply all needed services at the end of the script to avoid breaking the output during ip change. --- usr/local/www/interfaces_lan.php | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) (limited to 'usr/local') 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 .= "
Note that the DHCP server has been disabled.
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() { + + \ No newline at end of file -- cgit v1.1