-
Notifications
You must be signed in to change notification settings - Fork 0
/
e-smith-backup-2.2.0-mount_usb.patch
92 lines (78 loc) · 1.71 KB
/
e-smith-backup-2.2.0-mount_usb.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
--- e-smith-backup-2.0.0/root/etc/e-smith/web/functions/backup.mountusb 2008-10-21 21:59:54.000000000 +1100
+++ e-smith-backup-2.0.0/root/etc/e-smith/web/functions/backup 2008-10-25 18:00:30.000000000 +1100
@@ -1765,7 +1765,7 @@
);
return;
}
- elsif ( $VFSType ne 'usb' ) {$mounted = 1}
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -1877,10 +1877,7 @@
);
return;
}
- elsif ( $VFSType ne 'usb' )
- {
- $mounted = 1;
- }
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -2013,10 +2010,7 @@
$fm->localise('ERR_MOUNTING_SMBSHARE') . "\n" . $err);
return;
}
- elsif ($VFSType ne 'usb')
- {
- $mounted = 1;
- }
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -2167,10 +2161,7 @@
);
return;
}
- elsif ($VFSType ne 'usb')
- {
- $mounted = 1;
- }
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -2401,10 +2392,7 @@
);
return;
}
- elsif ($VFSType ne 'usb')
- {
- $mounted = 1;
- }
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -2629,10 +2617,7 @@
);
return;
}
- elsif ($VFSType ne 'usb')
- {
- $mounted = 1;
- }
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -2797,10 +2782,7 @@
);
return;
}
- elsif ($VFSType ne 'usb')
- {
- $mounted = 1;
- }
+ else {$mounted = 1}
# Test if backup subdirectory for our server
@@ -3064,7 +3046,7 @@
elsif ($VFSType eq 'usb')
{
$_[2] = "/" . $share;
- return
+ return ( qx(/bin/mount "/$share" 2>&1) );
}
else
{