Do not do this during boot
This commit is contained in:
parent
63ba47297f
commit
e16f6d03a7
|
@ -995,16 +995,18 @@ function interface_gif_configure(&$gif, $gifkey = "") {
|
|||
else
|
||||
log_error(gettext("could not bring gifif up -- variable not defined"));
|
||||
|
||||
$iflist = get_configured_interface_list();
|
||||
foreach($iflist as $ifname) {
|
||||
if($config['interfaces'][$ifname]['if'] == $gifif) {
|
||||
if(get_interface_gateway($ifname)) {
|
||||
system_routing_configure($ifname);
|
||||
break;
|
||||
}
|
||||
if(get_interface_gateway_v6($ifname)) {
|
||||
system_routing_configure($ifname);
|
||||
break;
|
||||
if (!$g['booting']) {
|
||||
$iflist = get_configured_interface_list();
|
||||
foreach($iflist as $ifname) {
|
||||
if($config['interfaces'][$ifname]['if'] == $gifif) {
|
||||
if(get_interface_gateway($ifname)) {
|
||||
system_routing_configure($ifname);
|
||||
break;
|
||||
}
|
||||
if(get_interface_gateway_v6($ifname)) {
|
||||
system_routing_configure($ifname);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in New Issue