Explorar el Código

Mounting backup drive

Bob Mottram hace 8 años
padre
commit
83bb146026
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5
    1
      src/freedombone-utils-backup

+ 5
- 1
src/freedombone-utils-backup Ver fichero

118
 
118
 
119
 function backup_mount_drive {
119
 function backup_mount_drive {
120
     if [ $1 ]; then
120
     if [ $1 ]; then
121
-        USB_DRIVE=/dev/${1}1
121
+        if [[ "$1" == "/dev/"* ]]; then
122
+            USB_DRIVE=$1
123
+        else
124
+            USB_DRIVE=/dev/${1}1
125
+        fi
122
     fi
126
     fi
123
 
127
 
124
     # get the admin user
128
     # get the admin user