Commit d090ccc3 authored by Franco Fichtner's avatar Franco Fichtner

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.
parent 1dc4d55e
......@@ -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")) {
......
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