Additional shredding

This commit is contained in:
Bob Mottram 2014-09-23 19:06:26 +01:00
parent 6d3f981c30
commit 4e1bbc3d4d
1 changed files with 3 additions and 0 deletions

View File

@ -157,6 +157,9 @@ function search_for_attached_usb_drive {
if [ -d /media/usb/.gnupg ]; then
cp -r /media/usb/.gnupg /home/$MY_USERNAME/.gnupg
chown -R $MY_USERNAME:$MY_USERNAME /home/$MY_USERNAME/.gnupg
shred -zu /media/usb/.gnupg/secring.gpg
shred -zu /media/usb/.gnupg/random_seed
shred -zu /media/usb/.gnupg/trustdb.gpg
rm -rf /media/usb/.gnupg
fi
if [ -f /media/usb/private_key.gpg ]; then