speed.cgi: Suppress error messages if not connected to the internet.

This commit is contained in:
Michael Tremer
2013-09-07 16:23:50 +02:00
parent 303c90a4c1
commit f8b12375c7
2 changed files with 3 additions and 3 deletions

View File

@@ -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;