From 182c30de16f68cc373ae923dbe5af58c14442e16 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 24 Jul 2005 22:24:09 +0000 Subject: * Drop kick reboots bye bye * Add reloat_interfaces() * Add reload_all() * Use reload_all() in wizard --- usr/local/www/interfaces_assign.php | 6 ++-- usr/local/www/interfaces_vlan.php | 5 ++-- usr/local/www/wizards/setup_wizard.xml | 51 +--------------------------------- 3 files changed, 8 insertions(+), 54 deletions(-) (limited to 'usr') diff --git a/usr/local/www/interfaces_assign.php b/usr/local/www/interfaces_assign.php index 2f10b66..6a66325 100755 --- a/usr/local/www/interfaces_assign.php +++ b/usr/local/www/interfaces_assign.php @@ -112,7 +112,10 @@ if ($_POST) { } write_config(); - touch($d_sysrebootreqd_path); + + /* reload all interfaces configuration */ + reload_interfaces(); + } } @@ -186,7 +189,6 @@ include("head.inc");

-
diff --git a/usr/local/www/interfaces_vlan.php b/usr/local/www/interfaces_vlan.php index cbfa9ca..9d130c9 100755 --- a/usr/local/www/interfaces_vlan.php +++ b/usr/local/www/interfaces_vlan.php @@ -78,7 +78,9 @@ if ($_GET['act'] == "del") { $config['interfaces']['opt' . $i]['if'] = renumber_vlan($config['interfaces']['opt' . $i]['if'], $_GET['id']); write_config(); - touch($d_sysrebootreqd_path); + + reload_interfaces(); + header("Location: interfaces_vlan.php"); exit; } @@ -94,7 +96,6 @@ include("head.inc");

-
A reload is now in progress. Please wait. <p> The system will automatically try to access $myurl in 120 seconds. <p> You can click on the icon above to access the site more quickly. <meta http-equiv="refresh" content="60; url=$myurl" > - /* set up our timezone */ - system_timezone_configure(); - - /* set up our hostname */ - system_hostname_configure(); - - /* make hosts file */ - system_hosts_generate(); - - /* generate resolv.conf */ - system_resolvconf_generate(); - - /* set up LAN interface */ - interfaces_lan_configure(); - - /* set up WAN interface */ - interfaces_wan_configure(); - - /* set up Optional interfaces */ - interfaces_optional_configure(); - - /* bring up carp interfaces */ - interfaces_carp_bringup(); - - /* set up static routes */ - system_routing_configure(); - - /* enable routing */ - system_routing_enable(); - - /* ensure passwords are sync'd */ - system_password_configure(); - - /* start dnsmasq service */ - services_dnsmasq_configure(); - - /* start dyndns service */ - services_dyndns_configure(); - - /* start DHCP service */ - services_dhcpd_configure(); - - /* start the NTP client */ - system_ntp_configure(); - - /* start ftp proxy helpers if they are enabled */ - system_start_ftp_helpers(); - - /* reload the filter */ - filter_configure(); + reload_all(); -- cgit v1.1