From: Michael Tremer Date: Mon, 17 May 2021 18:55:14 +0000 (+0100) Subject: index.cgi: Use new system methods X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d05a0abeebea233bf022b32d220e1c05b8fd80e;p=people%2Fstevee%2Fipfire-2.x.git index.cgi: Use new system methods Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index 4ac237d0fe..fafbe0aa1a 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -118,10 +118,10 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'dial profile'}) } if ($cgiparams{'ACTION'} eq $Lang::tr{'dial'}) { - system('/usr/local/bin/redctrl start > /dev/null') == 0 + &General::system('/usr/local/bin/redctrl', 'start') == 0 or &General::log("Dial failed: $?"); sleep 1; }elsif ($cgiparams{'ACTION'} eq $Lang::tr{'hangup'}) { - system('/usr/local/bin/redctrl stop > /dev/null') == 0 + &General::system('/usr/local/bin/redctrl', 'stop') == 0 or &General::log("Hangup failed: $?"); sleep 1; }