1 2 3 4 5 6 7 8 9
#!/bin/sh V="$(mount | grep veracrypt_aux_mnt)" if [ ! -z "$V" ] then echo "Error: All VeraCrypt volumes must be dismounted first." >&2 exit 1 else exit 0 fi