1 |
diff -Naur e-smith-backup-2.2.0-orig/root/etc/e-smith/web/functions/backup e-smith-backup-2.2.0/root/etc/e-smith/web/functions/backup |
2 |
--- e-smith-backup-2.2.0-orig/root/etc/e-smith/web/functions/backup 2010-06-07 16:19:19.056134825 +0200 |
3 |
+++ e-smith-backup-2.2.0/root/etc/e-smith/web/functions/backup 2010-06-07 16:19:45.212888963 +0200 |
4 |
@@ -1217,11 +1217,16 @@ |
5 |
|
6 |
if ( $VFSType eq 'usb' ) { |
7 |
foreach my $udi (qx(hal-find-by-property --key volume.fsusage --string filesystem)) { |
8 |
- $udi =~ m/^(\S+)/; |
9 |
- my $vollbl = qx(hal-get-property --udi $1 --key volume.label); |
10 |
- $vollbl =~ m/^(\S+)/; |
11 |
- if ($vollbl =~ /^\s/) {$vollbl = 'nolabel';} |
12 |
- push @usbdisks, $vollbl; |
13 |
+ $udi =~ m/^(\S+)/; |
14 |
+ |
15 |
+ my $is_mounted = qx(hal-get-property --udi $1 --key volume.is_mounted); |
16 |
+ |
17 |
+ if ($is_mounted eq "false\n") { |
18 |
+ my $vollbl = qx(hal-get-property --udi $1 --key volume.label); |
19 |
+ $vollbl =~ m/^(\S+)/; |
20 |
+ if ($vollbl =~ /^\s/) {$vollbl = 'nolabel';} |
21 |
+ push @usbdisks, $vollbl; |
22 |
+ } |
23 |
} |
24 |
|
25 |
unless ($usbdisks[0]){ |