Browse Source

Mounting backup drive

Bob Mottram 8 years ago
parent
commit
83bb146026
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/freedombone-utils-backup

+ 5
- 1
src/freedombone-utils-backup View File

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