Commit 6b96b949 authored by Franco Fichtner's avatar Franco Fichtner

interfaces: expand call for interface_reconfigure() and remove it

parent dc10dc55
...@@ -1042,12 +1042,6 @@ function interfaces_configure($verbose = false) ...@@ -1042,12 +1042,6 @@ function interfaces_configure($verbose = false)
return 0; return 0;
} }
function interface_reconfigure($interface = 'wan', $reloadall = false)
{
interface_bring_down($interface);
interface_configure($interface, $reloadall);
}
function interface_vip_bring_down($vip) function interface_vip_bring_down($vip)
{ {
$vipif = get_real_interface($vip['interface']); $vipif = get_real_interface($vip['interface']);
......
...@@ -489,7 +489,8 @@ $upperifname = strtoupper($interface); ...@@ -489,7 +489,8 @@ $upperifname = strtoupper($interface);
if (!$dry_run) { if (!$dry_run) {
echo "\nPlease wait while the changes are saved to {$upperifname}..."; echo "\nPlease wait while the changes are saved to {$upperifname}...";
write_config(sprintf('%s IP configuration from console menu', $interface)); write_config(sprintf('%s IP configuration from console menu', $interface));
interface_reconfigure(strtolower($upperifname)); interface_bring_down($interface);
interface_configure($interface);
echo "\n Reloading filter..."; echo "\n Reloading filter...";
filter_configure_sync(); filter_configure_sync();
if ($restart_dhcpd) { if ($restart_dhcpd) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment