mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
interfaces: mock hidden wireless devices for assignment; closes #5939
This commit is contained in:
parent
b3575e93e6
commit
76a473d8ed
@ -136,6 +136,17 @@ function list_interfaces()
|
||||
}
|
||||
}
|
||||
|
||||
// fixup wireless mess (automatic types have no explicit clones)
|
||||
foreach (legacy_config_get_interfaces() as $id => $conf) {
|
||||
if (isset($conf['wireless']) && !isset($interfaces[$conf['if']]) && does_interface_exist($conf['if'])) {
|
||||
$interfaces[$conf['if']] = [
|
||||
'descr' => sprintf('%s (%s)', $conf['if'], gettext('wireless clone')),
|
||||
'ifdescr' => gettext('wireless clone'),
|
||||
'section' => 'wireless.doesnotexist',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
return $interfaces;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user