tOne tool doing one thing and doing it well :) - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 8ec31a1737babf345ecb817596188fd03aabd8e8
DIR parent d7b4313b0835d6e14cf934ec81c0e3d8f0940552
HTML Author: Hellekin O. Wolf =8) <hellekin@cepheide.org>
Date: Fri, 11 Feb 2011 04:02:40 +0100
One tool doing one thing and doing it well :)
Diffstat:
M src/tomb | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
DIR diff --git a/src/tomb b/src/tomb
t@@ -137,11 +137,12 @@ ask_usbkey() {
# # check where it is mounted
# usbmount=`cat /proc/mounts | awk -v p=$usbpart '{ if( $1 == "/dev/" p) print $2 }'`
- sleep 1
+# sleep 1
# mount the first partition on the usb key
- mtmp=`tempfile -p tomb`
- rm -f $mtmp
- mkdir -p $mtmp
+# mtmp=`tempfile -p tomb`
+# rm -f $mtmp
+# mkdir -p $mtmp
+ mtmp=$(/bin/mktemp -d --tmpdir tomb.XXXXXXXXXXXX)
mount /dev/$usbpart $mtmp
if [ $? = 0 ]; then
usbmount=$mtmp