diff --git a/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh b/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh
index 0277dcd..0231b19 100755
--- a/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh
+++ b/cryptobox.conf.d/usr/lib/cryptobox/cbox-manage.sh
@@ -124,7 +124,7 @@ function create_crypto()
#$WIPE -kq -R /dev/urandom "${device}2"
# passphrase may be passed via command line
- $CRYPTSETUP -h "$HASH" -c "$ALGO" create "$CRYPTMAPPER_DEV" "${device}2"
+ $CRYPTSETUP -h "$HASH" -c "$ALGO" create "`basename $CRYPTMAPPER_DEV`" "${device}2"
}
@@ -205,7 +205,7 @@ function mount_crypto()
is_crypto_mounted && echo "Das Crypto-Dateisystem ist bereits aktiv!"
local device=`find_harddisk`
# passphrase is read from stdin
- $CRYPTSETUP -h "$HASH" -c "$ALGO" create "$CRYPTMAPPER_DEV" "${device}2"
+ $CRYPTSETUP -h "$HASH" -c "$ALGO" create "`basename $CRYPTMAPPER_DEV`" "${device}2"
if mount "$CRYPTMAPPER_DEV" "$CRYPTO_DIR"
then /etc/init.d/samba start
else dmsetup remove "$CRYPTMAPPER_DEV"
diff --git a/cryptobox.conf.d/usr/lib/cryptobox/devel-features.sh b/cryptobox.conf.d/usr/lib/cryptobox/devel-features.sh
index e0504b4..69b6d11 100755
--- a/cryptobox.conf.d/usr/lib/cryptobox/devel-features.sh
+++ b/cryptobox.conf.d/usr/lib/cryptobox/devel-features.sh
@@ -46,7 +46,8 @@ case "$ACTION" in
diff )
cd "`dirname \"$MIRROR_ORIG_DIR\"`"
# diff and remove "binary files differ"-warnings (vi-swap-files)
- diff -ruN "`basename \"$MIRROR_ORIG_DIR\"`" "`basename \"$MIRROR_DIR\"`" | grep -v "^Binary files"
+ # ignore generated reports
+ diff -ruN --exclude=report "`basename \"$MIRROR_ORIG_DIR\"`" "`basename \"$MIRROR_DIR\"`" | grep -v "^Binary files"
;;
stop )
/etc/init.d/ssh stop
diff --git a/cryptobox.conf.d/usr/lib/cryptobox/validate.sh b/cryptobox.conf.d/usr/lib/cryptobox/validate.sh
index e7ea4d6..940f13c 100755
--- a/cryptobox.conf.d/usr/lib/cryptobox/validate.sh
+++ b/cryptobox.conf.d/usr/lib/cryptobox/validate.sh
@@ -62,7 +62,7 @@ create_summary()
local DIFF_FILE=${a%.desc}.diff
if [ -s "$DIFF_FILE" ]
then cat "$SUMMARY_TEMPLATE_DIR/result-error"
- cat "$DIFF_FILE" | sed 's/\$/
/'
+ sed 's#$#
#' "$DIFF_FILE"
else cat "$SUMMARY_TEMPLATE_DIR/result-ok"
echo "no differences found"
fi
@@ -70,7 +70,7 @@ create_summary()
# remove description file
rm "$a"
# remove if empty
- [ -e "$DIFF_FILE" -a ! -s "$DIFF_FILE"] && rm "$DIFF_FILE"
+ [ -e "$DIFF_FILE" -a ! -s "$DIFF_FILE" ] && rm "$DIFF_FILE"
done
cat "$SUMMARY_TEMPLATE_DIR/footer"
}
diff --git a/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs b/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs
index fdecb67..d4e0ab5 100644
--- a/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs
+++ b/cryptobox.conf.d/usr/share/cryptobox/templates/config_form.cs
@@ -4,20 +4,18 @@