From b969e59157df2585f6cb8e6c153cda35924bef19 Mon Sep 17 00:00:00 2001 From: lars Date: Wed, 21 Sep 2005 02:26:31 +0000 Subject: [PATCH] unified form header persistent user-specific language setting fixed --- cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh | 11 +++++++---- .../usr/share/cryptobox/templates/config_form.cs | 4 +--- .../usr/share/cryptobox/templates/init_form.cs | 2 +- .../usr/share/cryptobox/templates/macros.cs | 14 +++++++++++--- .../usr/share/cryptobox/templates/mount_form.cs | 3 +-- .../usr/share/cryptobox/templates/shutdown_form.cs | 3 +-- .../usr/share/cryptobox/templates/umount_form.cs | 3 +-- 7 files changed, 23 insertions(+), 17 deletions(-) diff --git a/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh b/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh index 79259c5..4100571 100755 --- a/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh +++ b/cbox-tree.d/usr/lib/cryptobox/cbox-manage.sh @@ -133,10 +133,6 @@ function create_crypto() # Parameter: device { local device="$1" - # flood the crypto partition with noise - # TODO: do we need "wipe"? - #$WIPE -kq -R /dev/urandom "${device}2" - # passphrase may be passed via command line $CRYPTSETUP -h "$HASH" -c "$ALGO" create "`basename $CRYPTMAPPER_DEV`" "${device}2" } @@ -145,6 +141,13 @@ function create_crypto() function mkfs_crypto() # split from create_crypto to allow background execution via web interface { + local device=$(find_harddisk) + + # flood the crypto partition with noise + # writing to the real partition is faster + # TODO: this takes _much_ too long - maybe add a "secure wipe" switch to the interface? + #dd if=/dev/urandom of="${device}2" bs=512 + $MKFS_DATA "$CRYPTMAPPER_DEV" } diff --git a/cbox-tree.d/usr/share/cryptobox/templates/config_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/config_form.cs index ec9cbdf..dd815c3 100644 --- a/cbox-tree.d/usr/share/cryptobox/templates/config_form.cs +++ b/cbox-tree.d/usr/share/cryptobox/templates/config_form.cs @@ -1,9 +1,7 @@

-
- +


diff --git a/cbox-tree.d/usr/share/cryptobox/templates/init_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/init_form.cs index e5d38cd..d1c1289 100644 --- a/cbox-tree.d/usr/share/cryptobox/templates/init_form.cs +++ b/cbox-tree.d/usr/share/cryptobox/templates/init_form.cs @@ -1,7 +1,7 @@

- +

diff --git a/cbox-tree.d/usr/share/cryptobox/templates/macros.cs b/cbox-tree.d/usr/share/cryptobox/templates/macros.cs index 5ad4e48..d4d05e7 100644 --- a/cbox-tree.d/usr/share/cryptobox/templates/macros.cs +++ b/cbox-tree.d/usr/share/cryptobox/templates/macros.cs @@ -62,7 +62,7 @@ set:tmp_concat='&' ?> @@ -77,7 +77,15 @@ /def ?> - + + diff --git a/cbox-tree.d/usr/share/cryptobox/templates/mount_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/mount_form.cs index a7920b2..5e9eb34 100644 --- a/cbox-tree.d/usr/share/cryptobox/templates/mount_form.cs +++ b/cbox-tree.d/usr/share/cryptobox/templates/mount_form.cs @@ -1,8 +1,7 @@

- +

diff --git a/cbox-tree.d/usr/share/cryptobox/templates/shutdown_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/shutdown_form.cs index 3ae4162..b97af50 100644 --- a/cbox-tree.d/usr/share/cryptobox/templates/shutdown_form.cs +++ b/cbox-tree.d/usr/share/cryptobox/templates/shutdown_form.cs @@ -1,8 +1,7 @@

- + diff --git a/cbox-tree.d/usr/share/cryptobox/templates/umount_form.cs b/cbox-tree.d/usr/share/cryptobox/templates/umount_form.cs index 2f8a13a..c127040 100644 --- a/cbox-tree.d/usr/share/cryptobox/templates/umount_form.cs +++ b/cbox-tree.d/usr/share/cryptobox/templates/umount_form.cs @@ -1,8 +1,7 @@

- +