mirror of
https://github.com/unraid/webgui.git
synced 2026-02-25 03:38:44 -06:00
Add wlan to port selection
This commit is contained in:
@@ -145,7 +145,8 @@ $cpumodel = str_ireplace(["Processor","(C)","(R)","(TM)"],["","©","®",
|
||||
$cpumodel .= (strpos($cpumodel,'@')===false && !empty($cpu['Current Speed']) ? " @ {$cpu['Current Speed']}" : "");
|
||||
|
||||
$total = exec("awk '/^MemTotal/{print $2*1024}' /proc/meminfo");
|
||||
unset($ports); exec("ls /sys/class/net|grep -Po '^(lo|(bond|eth)\d+)$'",$ports);
|
||||
unset($ports); exec("ls --indicator-style=none /sys/class/net|grep -Po '^(bond|eth|wlan)\d+$'",$ports);
|
||||
$ports[] = 'lo';
|
||||
|
||||
$sizes = ['MB','GB','TB'];
|
||||
$memory_type = $ecc = '';
|
||||
|
||||
@@ -50,7 +50,8 @@ function update_translation($locale) {
|
||||
}
|
||||
function ports() {
|
||||
global $net;
|
||||
exec("ls --indicator-style=none $net|grep -Po '^(lo|(bond|eth)\d+)$'",$ports);
|
||||
exec("ls --indicator-style=none $net|grep -Po '^(bond|eth|wlan)\d+$'",$ports);
|
||||
$ports[] = 'lo';
|
||||
return $ports;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user