mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Change hard "wlan0" to RASPI_WIFI_CLIENT_INTERFACE
This commit is contained in:
parent
24cb51d2b9
commit
3d561b1925
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ function DisplayDashboard(){
|
|||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i wlan0 | grep -oE "(([0-9]|[a-f]|[A-F]){2}:){5}([0-9]|[a-f]|[A-F]){2}" | tr "\n" "\|" | sed "s/.$//")', $clients);
|
||||
exec('cat '.RASPI_DNSMASQ_LEASES.'| grep -E $(arp -i '.RASPI_WIFI_CLIENT_INTERFACE.' | grep -oE "(([0-9]|[a-f]|[A-F]){2}:){5}([0-9]|[a-f]|[A-F]){2}" | tr "\n" "\|" | sed "s/.$//")', $clients);
|
||||
foreach( $clients as $client ) {
|
||||
$client_items = explode(' ', $client);
|
||||
echo '<tr>'.PHP_EOL;
|
||||
|
|
Loading…
Reference in a new issue