From 12317449d0cdfde685f4f9d97914a66d5e4982cf Mon Sep 17 00:00:00 2001 From: Stefan Schantl Date: Mon, 17 May 2021 23:15:42 +0200 Subject: [PATCH] qos.cgi: Use new system methods Signed-off-by: Stefan Schantl --- html/cgi-bin/qos.cgi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/qos.cgi b/html/cgi-bin/qos.cgi index 1825aca118..db75914737 100644 --- a/html/cgi-bin/qos.cgi +++ b/html/cgi-bin/qos.cgi @@ -104,7 +104,7 @@ $qossettings{'TOS'} = ''; &General::readhash("${General::swroot}/qos/settings", \%qossettings); &Header::getcgihash(\%qossettings); -$qossettings{'RED_DEV'} = `cat /var/ipfire/red/iface`; +$qossettings{'RED_DEV'} = &General::get_red_interface(); my %color = (); my %mainsettings = (); @@ -542,8 +542,8 @@ elsif ($qossettings{'ACTION'} eq $Lang::tr{'status'} ) &Header::openbox('100%', 'left', 'QoS Status'); if ($qossettings{'ENABLED'} eq 'on'){ my $output = ""; - $output = `/usr/local/bin/qosctrl status`; - $output = &Header::cleanhtml($output,"y"); + my @output = &General::system_output("/usr/local/bin/qosctrl", "status"); + $output = &Header::cleanhtml(@output[0],"y"); print "
$output
\n"; } else { print "$Lang::tr{'QoS not enabled'}"; } &Header::closebox(); -- 2.39.2