One tool doing one thing and doing it well :)

This commit is contained in:
Hellekin O. Wolf =8) 2011-02-11 04:02:40 +01:00 committed by Jaromil
parent 20170b2efb
commit 078f44160a

View File

@ -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