Don't mount if usb is already mounted
This commit is contained in:
parent
4779327f75
commit
e94545a91a
|
@ -150,7 +150,9 @@ function search_for_attached_usb_drive {
|
|||
return
|
||||
fi
|
||||
if [ -d $USB_DRIVE ]; then
|
||||
if [ ! -d /media/usb ]; then
|
||||
mount $USB_DRIVE /media/usb
|
||||
fi
|
||||
if [ -d /media/usb/Maildir ]; then
|
||||
echo 'Maildir found on USB drive'
|
||||
IMPORT_MAILDIR=/media/usb/Maildir
|
||||
|
|
Loading…
Reference in New Issue