2017-10-22 18:26:49 +02:00
|
|
|
<?php
|
|
|
|
|
2019-04-10 10:37:35 +02:00
|
|
|
include_once('includes/status_messages.php');
|
2017-10-22 18:26:49 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
2019-04-10 10:37:35 +02:00
|
|
|
function DisplayNetworkingConfig()
|
|
|
|
{
|
2017-10-22 18:26:49 +02:00
|
|
|
|
2019-04-10 10:37:35 +02:00
|
|
|
$status = new StatusMessages();
|
2017-10-22 18:26:49 +02:00
|
|
|
|
2019-04-10 10:37:35 +02:00
|
|
|
exec("ls /sys/class/net | grep -v lo", $interfaces);
|
2017-10-22 18:26:49 +02:00
|
|
|
|
2019-04-10 10:37:35 +02:00
|
|
|
foreach ($interfaces as $interface) {
|
|
|
|
exec("ip a show $interface", $$interface);
|
|
|
|
}
|
2017-10-22 18:26:49 +02:00
|
|
|
|
2019-08-19 01:38:41 +02:00
|
|
|
echo renderTemplate("networking", compact("status", "interfaces"));
|
2017-10-22 18:26:49 +02:00
|
|
|
}
|