mirror of
https://github.com/unraid/webgui.git
synced 2026-05-02 15:59:35 -05:00
Fixed: missing creating of eth10 settings page
This commit is contained in:
@@ -21,8 +21,7 @@ $ini = '/var/local/emhttp/network.ini';
|
||||
$validIP = '((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)';
|
||||
|
||||
// get available ethernet ports (excluding eth0)
|
||||
exec("ip -br addr|grep -Po '^eth[1-9]+\s'",$ports);
|
||||
$ports = array_map('trim', $ports);
|
||||
exec("ip -br addr|awk '/^eth[0-9]+\s/{print $1}'|grep -v '^eth0$'",$ports);
|
||||
|
||||
// remove non-existing ethernet ports
|
||||
foreach (glob("$docroot/webGui/Eth[1-9]*.page",GLOB_NOSORT) as $port) {
|
||||
|
||||
Reference in New Issue
Block a user