mirror of
https://github.com/billz/raspap-webgui.git
synced 2023-10-10 13:37:24 +02:00
FIX - wlan0 status doesn't contain RUNNING only UP
Tested on RPi3 Raspbian Jessie
This commit is contained in:
parent
97fd8dc13e
commit
5447c1a0dc
@ -44,7 +44,7 @@ function DisplayDashboard(){
|
|||||||
preg_match('/Frequency:(\d+.\d+ GHz)/i',$strWlan0,$result);
|
preg_match('/Frequency:(\d+.\d+ GHz)/i',$strWlan0,$result);
|
||||||
$strFrequency = $result[1];
|
$strFrequency = $result[1];
|
||||||
|
|
||||||
if(strpos( $strWlan0, "UP" ) !== false && strpos( $strWlan0, "RUNNING" ) !== false ) {
|
if(strpos( $strWlan0, "UP" ) !== false) { // && strpos( $strWlan0, "RUNNING" ) !== false ) {
|
||||||
$status->addMessage('Interface is up', 'success');
|
$status->addMessage('Interface is up', 'success');
|
||||||
$wlan0up = true;
|
$wlan0up = true;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user