Commit e1521f1a authored by Ad Schellevis's avatar Ad Schellevis

(legacy) code cleanup rc.initial.banner

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