mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
extrahd.cgi: Use new system functions
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -53,8 +53,8 @@ my $partitionsfile = "/var/ipfire/extrahd/partitions";
|
|||||||
my @dummy = ( ${Header::colourgreen}, ${Header::colourred} );
|
my @dummy = ( ${Header::colourgreen}, ${Header::colourred} );
|
||||||
undef (@dummy);
|
undef (@dummy);
|
||||||
|
|
||||||
system("/usr/local/bin/extrahdctrl scanhd ide >/dev/null");
|
&General::system("/usr/local/bin/extrahdctrl", "scanhd", "ide");
|
||||||
system("/usr/local/bin/extrahdctrl scanhd partitions >/dev/null");
|
&General::system("/usr/local/bin/extrahdctrl", "scanhd", "partitions");
|
||||||
|
|
||||||
&Header::showhttpheaders();
|
&Header::showhttpheaders();
|
||||||
|
|
||||||
@@ -98,7 +98,7 @@ if ($extrahdsettings{'ACTION'} eq $Lang::tr{'add'})
|
|||||||
UUID=$extrahdsettings{'UUID'};$extrahdsettings{'FS'};$extrahdsettings{'PATH'};
|
UUID=$extrahdsettings{'UUID'};$extrahdsettings{'FS'};$extrahdsettings{'PATH'};
|
||||||
END
|
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'})
|
elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'})
|
||||||
|
|||||||
Reference in New Issue
Block a user