mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
interfaces: pass reload flag instead of guessing
PR: https://github.com/opnsense/core/pull/2337
This commit is contained in:
parent
d15d3b9080
commit
8b0f702cd5
@ -884,7 +884,7 @@ function interface_gif_configure(&$gif, $gifkey = "")
|
||||
return $gifif;
|
||||
}
|
||||
|
||||
function interfaces_configure($verbose = false)
|
||||
function interfaces_configure($verbose = false, $reload = true)
|
||||
{
|
||||
global $config;
|
||||
|
||||
@ -898,9 +898,6 @@ function interfaces_configure($verbose = false)
|
||||
$bridge_list = array();
|
||||
$track6_list = array();
|
||||
|
||||
/* This is needed to speedup interfaces on bootup. */
|
||||
$reload = !file_exists('/var/run/booting');
|
||||
|
||||
foreach ($iflist as $if => $ifname) {
|
||||
$realif = $config['interfaces'][$if]['if'];
|
||||
if (strstr($realif, "bridge")) {
|
||||
|
||||
@ -96,7 +96,7 @@ system_hosts_generate(true);
|
||||
system_syslogd_start(true);
|
||||
|
||||
openvpn_prepare_all(true);
|
||||
interfaces_configure(true);
|
||||
interfaces_configure(true, false);
|
||||
|
||||
system_resolvconf_generate(true);
|
||||
filter_configure_sync(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user