9 |
|
|
10 |
sub ldie; |
sub ldie; |
11 |
sub start_dar_killer; |
sub start_dar_killer; |
12 |
@@ -312,77 +313,61 @@ |
@@ -312,77 +313,60 @@ |
13 |
return $code; |
return $code; |
14 |
} |
} |
15 |
|
|
89 |
- if ($vollbl eq $share) {$device = $blkdev;} |
- if ($vollbl eq $share) {$device = $blkdev;} |
90 |
+ if ( ${$valid}[0] ) { |
+ if ( ${$valid}[0] ) { |
91 |
+ foreach ( @{$valid} ) { |
+ foreach ( @{$valid} ) { |
|
+ warn $_; |
|
92 |
+ $vollbl = $devices->label($_); |
+ $vollbl = $devices->label($_); |
93 |
+ if ( $share eq "media/$vollbl" ) { |
+ if ( $share eq "media/$vollbl" ) { |
94 |
+ $device = "/dev/$_"; |
+ $device = "/dev/$_"; |