From 68c57e99d081f2601b0e53b66f8dc93623c76a20 Mon Sep 17 00:00:00 2001 From: age Date: Fri, 21 Oct 2005 11:58:24 +0000 Subject: [PATCH] add log_msg for cipher & hash --- cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh b/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh index 31a78ba..576efc4 100755 --- a/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh +++ b/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh @@ -150,6 +150,7 @@ function create_crypto() { local device="$1" # passphrase may be passed via command line + log_msg "Creating crypto partition with -h $(config_get_value hash) -c $(config_get_value cipher) on ${device}2" $CRYPTSETUP -h "$(config_get_value hash)" -c "$(config_get_value cipher)" create "`basename $CRYPTMAPPER_DEV`" "${device}2" } @@ -272,7 +273,7 @@ function mount_crypto() local device=`find_harddisk` [ -z "$device" ] && error_msg 4 'No valid harddisk found!' && return 1 # passphrase is read from stdin - log_msg "Mounting crypto partition ..." + log_msg "Mounting crypto partition with -h $(config_get_value hash) -c $(config_get_value cipher) on ${device}2" $CRYPTSETUP -h "$(config_get_value hash)" -c "$(config_get_value cipher)" create "`basename $CRYPTMAPPER_DEV`" "${device}2" if mount "$CRYPTMAPPER_DEV" "$CRYPTO_DIR" then log_msg "Mount succeded - now starting samba ..."