mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-22 07:30:23 +00:00
Merge pull request #7 from zlolz/fix-interfaces
hostapd & dhcpd -- ensure all interfaces are selectable
This commit is contained in:
commit
f3ebe5ea4f
1 changed files with 2 additions and 2 deletions
|
@ -409,7 +409,7 @@ function DisplayHostAPDConfig(){
|
|||
<label for="code">Interface</label>
|
||||
<select class="form-control" name="interface">
|
||||
<?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 ) {
|
||||
$select = '';
|
||||
if( $int == $arrConfig['interface'] ) {
|
||||
|
@ -586,7 +586,7 @@ function DisplayDHCPConfig() {
|
|||
<label for="code">Interface</label>
|
||||
<select class="form-control" name="interface">
|
||||
<?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 ) {
|
||||
$select = '';
|
||||
|
|
Loading…
Reference in a new issue