From 1e7c0108abd27f9c970d1719c09927d99c8ffea9 Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 17 May 2021 23:17:43 +0200 Subject: [PATCH] speed.cgi: Use new system methods Signed-off-by: Stefan Schantl --- html/cgi-bin/speed.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/speed.cgi b/html/cgi-bin/speed.cgi index 4468abd900..8acdb2bd8c 100644 --- a/html/cgi-bin/speed.cgi +++ b/html/cgi-bin/speed.cgi @@ -36,8 +36,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; -- 2.39.2