From: Michael Tremer Date: Mon, 17 May 2021 18:41:08 +0000 (+0100) Subject: extrahd.cgi: Use new system functions X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=480c64385f929dcf048a9ddde1504de28e4a3ead;p=people%2Fstevee%2Fipfire-2.x.git extrahd.cgi: Use new system functions Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/extrahd.cgi b/html/cgi-bin/extrahd.cgi index aaf42bafff..e277abd511 100644 --- a/html/cgi-bin/extrahd.cgi +++ b/html/cgi-bin/extrahd.cgi @@ -53,8 +53,8 @@ my $partitionsfile = "/var/ipfire/extrahd/partitions"; my @dummy = ( ${Header::colourgreen}, ${Header::colourred} ); undef (@dummy); -system("/usr/local/bin/extrahdctrl scanhd ide >/dev/null"); -system("/usr/local/bin/extrahdctrl scanhd partitions >/dev/null"); +&General::system("/usr/local/bin/extrahdctrl", "scanhd", "ide"); +&General::system("/usr/local/bin/extrahdctrl", "scanhd", "partitions"); &Header::showhttpheaders(); @@ -98,7 +98,7 @@ if ($extrahdsettings{'ACTION'} eq $Lang::tr{'add'}) UUID=$extrahdsettings{'UUID'};$extrahdsettings{'FS'};$extrahdsettings{'PATH'}; END ; - system("/usr/local/bin/extrahdctrl mount $extrahdsettings{'PATH'}"); + &General::system("/usr/local/bin/extrahdctrl", "mount", "$extrahdsettings{'PATH'}"); } } elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'})