mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Added regexp
This commit is contained in:
parent
aa4ae996d2
commit
936dc728dd
@ -57,7 +57,11 @@ else
|
||||
{
|
||||
if (substr($fs,0,1) eq '-')
|
||||
{
|
||||
$excluded_filesystems{substr($fs,1,)} = '-1%';
|
||||
my $mount_name=substr($fs,1,);
|
||||
my @mount_all= split /\n/, `df -khTP | tail -n +2 | awk '{print \$7}'| grep -i "$mount_name"`;
|
||||
foreach (@mount_all){
|
||||
$excluded_filesystems{$_} = '-1%';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user