Commit 640e37f6 authored by Ad Schellevis's avatar Ad Schellevis

(legacy) more isset issues in rc.linkup

parent e4682fff
...@@ -39,8 +39,16 @@ function handle_argument_group($iface, $argument2) { ...@@ -39,8 +39,16 @@ function handle_argument_group($iface, $argument2) {
if (!is_array($config['interfaces'][$iface])) if (!is_array($config['interfaces'][$iface]))
return; return;
$ipaddr = $config['interfaces'][$iface]['ipaddr']; if (isset($config['interfaces'][$iface]['ipaddr'])) {
$ip6addr = $config['interfaces'][$iface]['ipaddrv6']; $ipaddr = $config['interfaces'][$iface]['ipaddr'];
} else {
$ipaddr = null ;
}
if (isset($config['interfaces'][$iface]['ipaddrv6'])) {
$ip6addr = $config['interfaces'][$iface]['ipaddrv6'];
} else {
$ip6addr = null;
}
$staticv4 = false; $staticv4 = false;
if (empty($ipaddr)) if (empty($ipaddr))
$staticv4 = true; $staticv4 = true;
......
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