mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 11:13:24 +02:00
extrahd.cgi: Use new system methods
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
2bbf176619
commit
3a69c4fbbc
@@ -103,7 +103,7 @@ END
|
||||
}
|
||||
elsif ($extrahdsettings{'ACTION'} eq $Lang::tr{'delete'})
|
||||
{
|
||||
if ( `/usr/local/bin/extrahdctrl umount $extrahdsettings{'PATH'}` ) {
|
||||
if ( &General::system("/usr/local/bin/extrahdctrl", "umount", "$extrahdsettings{'PATH'}")) {
|
||||
open( FILE, "< $devicefile" ) or die "Unable to read $devicefile";
|
||||
@tmp = <FILE>;
|
||||
close FILE;
|
||||
@@ -143,7 +143,11 @@ END
|
||||
{
|
||||
@deviceline = split( /\;/, $deviceentry );
|
||||
my $color="$Header::colourred";
|
||||
if ( ! `/bin/mountpoint $deviceline[2] | grep " not "` ) {
|
||||
|
||||
# Use safe system_output to get mountpoint details.
|
||||
my @mountpoint = &General::system_output("/bin/mountpoint", "$deviceline[2]");
|
||||
|
||||
if ( ! grep(/not/, @mountpoint)) {
|
||||
$color=$Header::colourgreen;
|
||||
}
|
||||
print <<END
|
||||
|
||||
Reference in New Issue
Block a user