mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-16 01:27:08 +00:00
safe wipe of created temp key file
This commit is contained in:
parent
d079876e08
commit
482c408609
10
src/tomb
10
src/tomb
@ -47,6 +47,14 @@ else
|
||||
DD=dd
|
||||
fi
|
||||
|
||||
# which wipe command to use
|
||||
which wipe > /dev/null
|
||||
if [ $? = 0 ]; then
|
||||
WIPE="wipe -f -s -q"
|
||||
else
|
||||
WIPE="rm -f"
|
||||
fi
|
||||
|
||||
# usb auto detect
|
||||
# tested on ubuntu 10.04 - please test and patch on other systems if you can
|
||||
ask_usbkey() {
|
||||
@ -250,7 +258,7 @@ create_tomb() {
|
||||
|
||||
|
||||
cryptsetup --key-file ${keytmp} --cipher aes luksOpen ${nstloop} tomb.tmp
|
||||
rm -f ${keytmp}
|
||||
$WIPE ${keytmp}
|
||||
|
||||
notice "Your tomb is read on ${FILE} and secured with key ${FILE}.gpg"
|
||||
act "now plug an external usb device to save the key separately:"
|
||||
|
Loading…
Reference in New Issue
Block a user