From d27b73d81bd9bded5909db2a9fec072eb1657245 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 27 Jun 2016 08:41:37 +0200 Subject: [PATCH] if mxmount find a mountpoint ends with 0, it skip data0 and mount this instead --- mxmount | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mxmount b/mxmount index 6a24eec..1d710ec 100755 --- a/mxmount +++ b/mxmount @@ -65,7 +65,7 @@ sub add_data0_if_not_present { $allmp = [] unless (defined $allmp); foreach my $mp (sort { $a->{mountpoint} cmp $b->{mountpoint} } @$allmp ) { - if ($mp->{label} eq "data0") { + if ($mp->{mountpoint}=~/0$/ or $mp->{label} eq "data0") { return; } }