From 8ec31a1737babf345ecb817596188fd03aabd8e8 Mon Sep 17 00:00:00 2001 From: "Hellekin O. Wolf =8)" Date: Fri, 11 Feb 2011 04:02:40 +0100 Subject: [PATCH] One tool doing one thing and doing it well :) --- src/tomb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/tomb b/src/tomb index 60e6018..27daa80 100755 --- a/src/tomb +++ b/src/tomb @@ -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