Commit 1dc4d55e authored by Franco Fichtner's avatar Franco Fichtner

interfaces: flatten code block

parent 0ba0986a
...@@ -1052,8 +1052,7 @@ function interfaces_configure() ...@@ -1052,8 +1052,7 @@ function interfaces_configure()
$realif = $config['interfaces'][$if]['if']; $realif = $config['interfaces'][$if]['if'];
if (strstr($realif, "bridge")) { if (strstr($realif, "bridge")) {
$bridge_list[$if] = $ifname; $bridge_list[$if] = $ifname;
} else { } elseif (strstr($realif, "gre")) {
if (strstr($realif, "gre")) {
$delayed_list[$if] = $ifname; $delayed_list[$if] = $ifname;
} elseif (strstr($realif, "gif")) { } elseif (strstr($realif, "gif")) {
$delayed_list[$if] = $ifname; $delayed_list[$if] = $ifname;
...@@ -1066,14 +1065,12 @@ function interfaces_configure() ...@@ -1066,14 +1065,12 @@ function interfaces_configure()
if (file_exists("/var/run/booting")) { if (file_exists("/var/run/booting")) {
printf(gettext("Configuring %s interface..."), $ifname); printf(gettext("Configuring %s interface..."), $ifname);
} }
interface_configure($if, $reload); interface_configure($if, $reload);
if (file_exists("/var/run/booting")) { if (file_exists("/var/run/booting")) {
echo gettext("done.") . "\n"; echo gettext("done.") . "\n";
} }
} }
} }
}
/* /*
* NOTE: The following function parameter consists of * NOTE: The following function parameter consists of
...@@ -1094,9 +1091,7 @@ function interfaces_configure() ...@@ -1094,9 +1091,7 @@ function interfaces_configure()
if (file_exists("/var/run/booting")) { if (file_exists("/var/run/booting")) {
printf(gettext("Configuring %s interface..."), $ifname); printf(gettext("Configuring %s interface..."), $ifname);
} }
interface_configure($if, $reload); interface_configure($if, $reload);
if (file_exists("/var/run/booting")) { if (file_exists("/var/run/booting")) {
echo gettext("done.") . "\n"; echo gettext("done.") . "\n";
} }
......
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