mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Implement routing table raw output
This commit is contained in:
@@ -55,3 +55,14 @@ function getRouteInfo($checkAccess)
|
||||
return $rInfo;
|
||||
}
|
||||
|
||||
/*
|
||||
* Fetches raw output of ip route
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function getRouteInfoRaw()
|
||||
{
|
||||
exec('ip route list', $routes);
|
||||
return $routes;
|
||||
}
|
||||
|
||||
|
@@ -14,6 +14,7 @@ function DisplayNetworkingConfig()
|
||||
|
||||
exec("ls /sys/class/net | grep -v lo", $interfaces);
|
||||
$routeInfo = getRouteInfo(true);
|
||||
$routeInfoRaw = getRouteInfoRaw();
|
||||
$arrHostapdConf = parse_ini_file(RASPI_CONFIG.'/hostapd.ini');
|
||||
$bridgedEnabled = $arrHostapdConf['BridgedEnable'];
|
||||
|
||||
@@ -21,6 +22,7 @@ function DisplayNetworkingConfig()
|
||||
"status",
|
||||
"interfaces",
|
||||
"routeInfo",
|
||||
"routeInfoRaw",
|
||||
"bridgedEnabled")
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user