Force unmount
This commit is contained in:
parent
09e555d312
commit
4bbfd4536b
|
@ -107,7 +107,7 @@ fi
|
|||
if [[ $MASTER_DRIVE == "yes" || $MASTER_DRIVE == "y" || $MASTER_DRIVE == "1" ]]; then
|
||||
if [ ! -d /home/$MY_USERNAME/.gnupg ]; then
|
||||
echo "No .gnupg directory was found for $MY_USERNAME"
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 73025
|
||||
fi
|
||||
|
@ -117,7 +117,7 @@ if [[ $MASTER_DRIVE == "yes" || $MASTER_DRIVE == "y" || $MASTER_DRIVE == "1" ]];
|
|||
else
|
||||
echo "Unable to copy gpg keyring to $USB_DRIVE"
|
||||
fi
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 0
|
||||
fi
|
||||
|
@ -135,7 +135,7 @@ if [ ! -d $FRAGMENTS_DIR ]; then
|
|||
fi
|
||||
if [ ! -d $FRAGMENTS_DIR ]; then
|
||||
echo "There was a problem making the directory $FRAGMENTS_DIR"
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 6843
|
||||
fi
|
||||
|
@ -149,7 +149,7 @@ else
|
|||
fi
|
||||
if (( no_of_usb_shares > 0 )); then
|
||||
echo "A key fragment already exists on the drive for the user $MY_USERNAME"
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 58945
|
||||
fi
|
||||
|
@ -181,7 +181,7 @@ fi
|
|||
|
||||
if (( no_of_local_shares < 3 )); then
|
||||
echo "Not enough key fragments available ${no_of_local_shares}"
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 63386
|
||||
fi
|
||||
|
@ -196,18 +196,18 @@ no_of_usb_shares=$((no_of_usb_shares - 2))
|
|||
if (( no_of_usb_shares > 1 )); then
|
||||
echo "Too many key fragments exist in $FRAGMENTS_DIR"
|
||||
ls $FRAGMENTS_DIR
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 54292
|
||||
fi
|
||||
if (( no_of_usb_shares <= 0 )); then
|
||||
echo "There was a problem copying the key fragment to $USB_DRIVE"
|
||||
ls $FRAGMENTS_DIR
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
exit 54292
|
||||
fi
|
||||
umount $USB_MOUNT
|
||||
umount -f $USB_MOUNT
|
||||
rm -rf $USB_MOUNT
|
||||
echo "Key fragment copied to $USB_DRIVE. You may now remove the drive."
|
||||
|
||||
|
|
Loading…
Reference in New Issue