Add wlan to port selection

This commit is contained in:
bergware
2025-02-03 18:46:16 +01:00
parent bc3d1eaeb2
commit 6db4ef7520
2 changed files with 4 additions and 2 deletions

View File

@@ -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 = '';

View File

@@ -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;
}