mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Rename constant for clarity
This commit is contained in:
parent
2ca9bf5b6f
commit
8ae1e5a8f2
3 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ define('RASPI_VERSION', '2.4.1');
|
||||||
define('RASPI_CONFIG', '/etc/raspap');
|
define('RASPI_CONFIG', '/etc/raspap');
|
||||||
define('RASPI_CONFIG_NETWORKING', RASPI_CONFIG.'/networking');
|
define('RASPI_CONFIG_NETWORKING', RASPI_CONFIG.'/networking');
|
||||||
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
define('RASPI_ADMIN_DETAILS', RASPI_CONFIG.'/raspap.auth');
|
||||||
define('RASPI_WIFI_CLIENT_INTERFACE', 'wlan0');
|
define('RASPI_WIFI_AP_INTERFACE', 'wlan0');
|
||||||
define('RASPI_CACHE_PATH', sys_get_temp_dir() . '/raspap');
|
define('RASPI_CACHE_PATH', sys_get_temp_dir() . '/raspap');
|
||||||
|
|
||||||
// Constants for configuration file paths.
|
// Constants for configuration file paths.
|
||||||
|
|
|
@ -8,7 +8,7 @@ $defaults = [
|
||||||
'RASPI_VERSION' => '2.4.1',
|
'RASPI_VERSION' => '2.4.1',
|
||||||
'RASPI_CONFIG_NETWORKING' => RASPI_CONFIG.'/networking',
|
'RASPI_CONFIG_NETWORKING' => RASPI_CONFIG.'/networking',
|
||||||
'RASPI_ADMIN_DETAILS' => RASPI_CONFIG.'/raspap.auth',
|
'RASPI_ADMIN_DETAILS' => RASPI_CONFIG.'/raspap.auth',
|
||||||
'RASPI_WIFI_CLIENT_INTERFACE' => 'wlan0',
|
'RASPI_WIFI_AP_INTERFACE' => 'wlan0',
|
||||||
'RASPI_CACHE_PATH' => sys_get_temp_dir() . '/raspap',
|
'RASPI_CACHE_PATH' => sys_get_temp_dir() . '/raspap',
|
||||||
|
|
||||||
// Constants for configuration file paths.
|
// Constants for configuration file paths.
|
||||||
|
|
|
@ -143,7 +143,7 @@ function getWifiInterface()
|
||||||
exec("iw dev | awk '$1==\"Interface\" && $2!=\"$iface\" {print $2}'",$iface2);
|
exec("iw dev | awk '$1==\"Interface\" && $2!=\"$iface\" {print $2}'",$iface2);
|
||||||
$_SESSION['ap_interface'] = empty($iface2) ? $iface : trim($iface2[0]);
|
$_SESSION['ap_interface'] = empty($iface2) ? $iface : trim($iface2[0]);
|
||||||
} else { // fallback to default
|
} else { // fallback to default
|
||||||
$_SESSION['ap_interface'] = RASPI_WIFI_CLIENT_INTERFACE;
|
$_SESSION['ap_interface'] = RASPI_WIFI_AP_INTERFACE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue