]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/commitdiff
index.cgi: Use new system methods
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 17 May 2021 18:55:14 +0000 (19:55 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Thu, 20 May 2021 15:42:41 +0000 (17:42 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
html/cgi-bin/index.cgi

index 4ac237d0fe7c007376ac4c2cc8badfd311f837e1..fafbe0aa1a97537f1f3fe61da5755346c97f24b6 100644 (file)
@@ -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;
 }