#Checking if mountpoint for the keydevice exists
if [ ! -d "${KEYDEVICE_MOUNT}" ]; then
if [ -e "${KEYDEVICE_MOUNT}" ]; then
echo "ERROR: There is a file where a directory should be (${KEYDEVICE_MOUNT})"
exit 7
else
echo "WARNING: The mountpoint does not exist, I will try to create it (${KEYDEVICE_MOUNT})"
if ! mkdir "${KEYDEVICE_MOUNT}"; then
echo "ERROR: Creating mountpoint (${KEYDEVICE_MOUNT})"
exit 9
fi
fi
fi

MAPPER_NAME="damn" # Mapper-device name
DEVICE_NAME="/dev/hde6" # Name of the partition-device, e.g. hda3
CRYPTSETUP_OPTIONS="" # Options for cryptsetup like -s 128

CRYPTO_MOUNT="/mnt/damn" # Moutpoint for the crypto-device
CRYPTO_FS="ext3" # Filesystem of the crypto-device
MOUNT_OPTIONS="user,exec" # Mountoptions for the crypted device

USE_REMOVEABLE_MEDIA="yes" # Is the keyfile on a removeable media? yes/no
WAIT_FOR_MEDIA="yes" # Should the script wait for user to enter the media with the key-file?
WAIT_TIME=10 # Wait-time in seconds

# Only needed if USE_REMOVEABLE_MEDIA = yes
RELOAD_USB_STORAGE_MODUL="yes" # Defines whether the script should reload the usb_storage modul or not yes/no
KEYDEVICE_NAME="/dev/sda1" # Name of the device where the key should be found
KEYDEVICE_MOUNT="/mnt/usbcf" # Mountpoint for the keydevice

# Name of the keyfile. If USE_REMOVEABLE_MEDIA = yes then it has to be a relativ
# path beginning from KEYDEVICE_MOUNT
# else it has to be an absolut path
KEYFILE="damn.gpg"

_________________...it's only Rock'n'Roll, but I like it!

Last edited by Anarcho on Fri Nov 05, 2004 11:51 am; edited 2 times in total