diff options
author | Jan Wagner <mail@jwagner.eu> | 2016-03-25 22:51:24 +0100 |
---|---|---|
committer | Jan Wagner <mail@jwagner.eu> | 2016-03-25 22:51:24 +0100 |
commit | 7b0a7803dcb8e18c3da450ab035f62bf4e9906f8 (patch) | |
tree | 2a9b9fa364a50cb8b28a944ea5436efa05ab9c56 /functions.sh | |
parent | b33dfc51ccafb9172c0a29c0e4376f0db8b9e3f1 (diff) | |
download | rpi2-gen-image-7b0a7803dcb8e18c3da450ab035f62bf4e9906f8.tar.gz rpi2-gen-image-7b0a7803dcb8e18c3da450ab035f62bf4e9906f8.tar.bz2 rpi2-gen-image-7b0a7803dcb8e18c3da450ab035f62bf4e9906f8.zip |
shred-fix
Diffstat (limited to 'functions.sh')
-rw-r--r-- | functions.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/functions.sh b/functions.sh index cbd5bad..ecf8a4c 100644 --- a/functions.sh +++ b/functions.sh @@ -10,6 +10,11 @@ cleanup (){ sleep 3 fuser -9 -k -v "$R" + # Clean up temporary .password file + if [ -r ".password" ] ; then + shred -zu .password + fi + # Clean up all temporary mount points echo "removing temporary mount points ..." umount -l "$R/proc" 2> /dev/null |