mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-26 19:00:34 +02:00
Fixed bug in hostapd webinterface site.
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
2bc120b21a
commit
034c2b7e28
4
html/cgi-bin/wlanap.cgi
Normal file → Executable file
4
html/cgi-bin/wlanap.cgi
Normal file → Executable file
@@ -118,6 +118,8 @@ if ( $cgiparams{'ACTION'} eq "$Lang::tr{'save'}" ){
|
||||
system("/usr/local/bin/wlanapctrl start >/dev/null 2>&1");
|
||||
}elsif ( $cgiparams{'ACTION'} eq 'Stop' ){
|
||||
system("/usr/local/bin/wlanapctrl stop >/dev/null 2>&1");
|
||||
}elsif ( $cgiparams{'ACTION'} eq 'Restart' ){
|
||||
system("/usr/local/bin/wlanapctrl restart >/dev/null 2>&1");
|
||||
}
|
||||
|
||||
&Header::openpage('WLAN', 1, '', '');
|
||||
@@ -247,6 +249,7 @@ print <<END
|
||||
<tr><td bgcolor='$color{'color20'}' colspan='2' align='left'><b>WLAN Services</b></td></tr>
|
||||
END
|
||||
;
|
||||
print "<form method='post' action='$ENV{'SCRIPT_NAME'}'>";
|
||||
if ( $wlan_card_status ne '' ){
|
||||
print "<tr><td class='base'>WLAN card ($wlanapsettings{'DRIVER'})</td>";
|
||||
print $wlan_card_status eq 'up' ? $status_started : $status_stopped;
|
||||
@@ -261,6 +264,7 @@ if ( $wlan_card_status ne '' ){
|
||||
}else{
|
||||
print "<tr><td colspan='2' class='base'><b>$message</b></td></tr>";
|
||||
}
|
||||
print "</form>";
|
||||
print "</table>";
|
||||
|
||||
if ( $wlan_card_status eq '' ){
|
||||
|
||||
Reference in New Issue
Block a user