]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - html/cgi-bin/speed.cgi
vpnmain.cgi: Fix typo.
[people/pmueller/ipfire-2.x.git] / html / cgi-bin / speed.cgi
index 4468abd900804ba60d0388124cb877b6b07a3025..b550fda521b2619ba9865c54ef8fbd3ee47bfe52 100644 (file)
@@ -19,6 +19,8 @@
 #                                                                             #
 ###############################################################################
 
+require '/var/ipfire/general-functions.pl';
+
 my $data_last = $ENV{'QUERY_STRING'};
 my $rxb_last = 0;
 my $txb_last = 0;
@@ -36,8 +38,8 @@ foreach $field (@fields) {
        }
 }
 
-my $interface = `cat /var/ipfire/red/iface 2>/dev/null`;
-my @data_now = `ip -s link show $interface 2>/dev/null`;
+my $interface = &General::get_red_interface();
+my @data_now = &General::system_output("ip", "-s", "link", "show", "$interface");
 
 my $lastline;
 my $rxb_now = 0;