1
0
mirror of https://github.com/billz/raspap-webgui.git synced 2023-10-10 13:37:24 +02:00

hostapd & dhcpd -- ensure all interfaces are selectable

This commit is contained in:
zlolz 2016-06-11 05:17:47 +00:00
parent 250d1f58be
commit 96e179e501

View File

@ -409,7 +409,7 @@ function DisplayHostAPDConfig(){
<label for="code">Interface</label> <label for="code">Interface</label>
<select class="form-control" name="interface"> <select class="form-control" name="interface">
<?php <?php
exec("cat /proc/net/dev | tail -n -3 | awk -F :\ ' { print $1 } ' | tr -d ' '", $interfaces); exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
foreach( $interfaces as $int ) { foreach( $interfaces as $int ) {
$select = ''; $select = '';
if( $int == $arrConfig['interface'] ) { if( $int == $arrConfig['interface'] ) {
@ -586,7 +586,7 @@ function DisplayDHCPConfig() {
<label for="code">Interface</label> <label for="code">Interface</label>
<select class="form-control" name="interface"> <select class="form-control" name="interface">
<?php <?php
exec( "cat /proc/net/dev | tail -n -3 | awk -F :\ ' { print $1 } ' | tr -d ' '", $interfaces ); exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
foreach( $interfaces as $int ) { foreach( $interfaces as $int ) {
$select = ''; $select = '';