mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
wlanap.cgi: Don't try to show status if there is no interface
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -354,6 +354,8 @@ END
|
||||
|
||||
&Header::closebox();
|
||||
|
||||
if ($INTF) {
|
||||
|
||||
&Header::opensection();
|
||||
|
||||
my @status = `iw dev $INTF info`;
|
||||
@@ -366,7 +368,7 @@ if (@status) {
|
||||
END
|
||||
}
|
||||
|
||||
my @status = `iw dev $INTF station dump`;
|
||||
@status = `iw dev $INTF station dump`;
|
||||
|
||||
if (@status) {
|
||||
print <<END;
|
||||
@@ -377,6 +379,8 @@ END
|
||||
}
|
||||
|
||||
&Header::closesection();
|
||||
}
|
||||
|
||||
&Header::closebigbox();
|
||||
&Header::closepage();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user