Commit c1ca9473 authored by Franco Fichtner's avatar Franco Fichtner

rc: no interfaces, no list to show

(cherry picked from commit 82032a73)
(cherry picked from commit fae2e48f)
parent 3adbaf3a
......@@ -263,16 +263,20 @@ EOD;
}
}
echo "\nThe interfaces will be assigned as follows:\n\n";
if ($wanif != '' || $lanif != '' || count($optif)) {
echo "\nThe interfaces will be assigned as follows:\n\n";
if ($wanif != '') {
echo "WAN -> " . $wanif . "\n";
}
if ($lanif != '') {
echo "LAN -> " . $lanif . "\n";
}
for ($i = 0; $i < count($optif); $i++) {
echo "OPT" . ($i+1) . " -> " . $optif[$i] . "\n";
if ($wanif != '') {
echo "WAN -> " . $wanif . "\n";
}
if ($lanif != '') {
echo "LAN -> " . $lanif . "\n";
}
for ($i = 0; $i < count($optif); $i++) {
echo "OPT" . ($i+1) . " -> " . $optif[$i] . "\n";
}
} else {
echo "\nNo interfaces will be assigned!\n";
}
echo <<<EOD
......
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