Set default dhcp interface on page load

This commit is contained in:
billz
2020-11-21 13:52:20 +00:00
parent 73deab78cf
commit b63a53e182
3 changed files with 7 additions and 7 deletions

View File

@@ -44,17 +44,18 @@ function DisplayDHCPConfig()
}
}
}
getWifiInterface();
$serviceStatus = $dnsmasq_state ? "up" : "down";
exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
exec('cat ' . RASPI_DNSMASQ_LEASES, $leases);
$ap_iface = $_SESSION['ap_interface'];
echo renderTemplate(
"dhcp", compact(
"status",
"serviceStatus",
"dnsmasq_state",
"conf",
"ap_iface",
"dhcpHost",
"interfaces",
"leases"