mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
Change hard "wlan0" to RASPI_WIFI_CLIENT_INTERFACE
This commit is contained in:
parent
24cb51d2b9
commit
3d561b1925
@ -237,7 +237,7 @@ function DisplayDashboard(){
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php
|
<?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 ) {
|
foreach( $clients as $client ) {
|
||||||
$client_items = explode(' ', $client);
|
$client_items = explode(' ', $client);
|
||||||
echo '<tr>'.PHP_EOL;
|
echo '<tr>'.PHP_EOL;
|
||||||
|
Loading…
Reference in New Issue
Block a user