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:
parent
250d1f58be
commit
96e179e501
@ -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 = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user