mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-16 05:53:00 +02:00
speed.cgi: Suppress error messages if not connected to the internet.
This commit is contained in:
@@ -4,6 +4,7 @@ etc/rc.d/init.d/network
|
||||
srv/web/ipfire/cgi-bin/index.cgi
|
||||
srv/web/ipfire/cgi-bin/ovpnmain.cgi
|
||||
srv/web/ipfire/cgi-bin/upnp.cgi
|
||||
srv/web/ipfire/cgi-bin/speed.cgi
|
||||
srv/web/ipfire/cgi-bin/vpnmain.cgi
|
||||
var/ipfire/backup/bin/backup.pl
|
||||
var/ipfire/backup/exclude
|
||||
|
||||
@@ -36,9 +36,8 @@ foreach $field (@fields) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
my $interface = `cat /var/ipfire/red/iface`;
|
||||
my @data_now = `ip -s link show $interface`;
|
||||
my $interface = `cat /var/ipfire/red/iface 2>/dev/null`;
|
||||
my @data_now = `ip -s link show $interface 2>/dev/null`;
|
||||
|
||||
my $lastline;
|
||||
my $rxb_now = 0;
|
||||
|
||||
Reference in New Issue
Block a user