This lets a user/admin set the TABFILE environment variable before calling cryptdisks_* functions.
My specific use case is wanting to store config data on the external key storage media.
--- cryptdisks.functions.old 2011-08-18 10:58:17.407765219 -0500
+++ cryptdisks.functions 2011-08-18 10:59:54.011922327 -0500
@@ -4,21 +4,21 @@
# and should not be executed directly.
PATH="/usr/sbin:/usr/bin:/sbin:/bin"
-TABFILE="/etc/crypttab"
+TABFILE=${TABFILE-"/etc/crypttab"}
CRYPTDISKS_ENABLE="Yes"
#set -x
-# Sanity checks
-[ -x /sbin/cryptsetup ] || exit 0
-[ -f "$TABFILE" ] || exit 0
-
. /lib/lsb/init-functions
if [ -r /etc/default/cryptdisks ]; then
. /etc/default/cryptdisks
fi
+# Sanity checks
+[ -x /sbin/cryptsetup ] || exit 0
+[ -f "$TABFILE" ] || exit 0
+
MOUNT="$CRYPTDISKS_MOUNT"
# Parses the option field from the crypttab file
-- Douglas Huff
smime.p7s
Description: S/MIME cryptographic signature

