mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
interfaces: proerply delay OpenVPN configure
Once upon a time, OpenVPN devices were not available during boot time. This changed in 16.1.17 and now this exception seems to be a potential pitfall that can be easily fixed.
This commit is contained in:
parent
1dc4d55e7b
commit
d090ccc3dc
@ -1052,14 +1052,9 @@ function interfaces_configure()
|
||||
$realif = $config['interfaces'][$if]['if'];
|
||||
if (strstr($realif, "bridge")) {
|
||||
$bridge_list[$if] = $ifname;
|
||||
} elseif (strstr($realif, "gre")) {
|
||||
} elseif (strstr($realif, 'gre') || strstr($realif, 'gif') || strstr($realif, 'ovpn')) {
|
||||
$delayed_list[$if] = $ifname;
|
||||
} elseif (strstr($realif, "gif")) {
|
||||
$delayed_list[$if] = $ifname;
|
||||
} elseif (strstr($realif, "ovpn")) {
|
||||
//echo "Delaying OpenVPN interface configuration...done.\n";
|
||||
continue;
|
||||
} elseif (!empty($config['interfaces'][$if]['ipaddrv6']) && $config['interfaces'][$if]['ipaddrv6'] == "track6") {
|
||||
} elseif (!empty($config['interfaces'][$if]['ipaddrv6']) && $config['interfaces'][$if]['ipaddrv6'] == 'track6') {
|
||||
$track6_list[$if] = $ifname;
|
||||
} else {
|
||||
if (file_exists("/var/run/booting")) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user