Commit e28ebb61 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) code cleanup rc.initial.banner

parent 8a7ba132
......@@ -52,6 +52,8 @@ foreach($iflist as $ifname => $friendly) {
/* point to this interface's config */
$ifconf = $config['interfaces'][$ifname];
/* look for 'special cases' */
$class = "";
if (isset($ifconf['ipaddr'])) {
switch($ifconf['ipaddr']) {
case "dhcp":
$class = "/DHCP4";
......@@ -65,10 +67,10 @@ foreach($iflist as $ifname => $friendly) {
case "l2tp":
$class = "/L2TP";
break;
default:
$class = "";
break;
}
}
$class6 = null;
if (isset($ifconf['ipaddrv6'])) {
switch($ifconf['ipaddrv6']) {
case "dhcp6":
$class6 = "/DHCP6";
......@@ -86,6 +88,7 @@ foreach($iflist as $ifname => $friendly) {
$class6 = "/t6";
break;
}
}
$ipaddr = get_interface_ip($ifname);
$subnet = get_interface_subnet($ifname);
$ipaddr6 = get_interface_ipv6($ifname);
......
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