mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-05 04:47:56 +00:00
One tool doing one thing and doing it well :)
This commit is contained in:
parent
20170b2efb
commit
078f44160a
9
src/tomb
9
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
|
||||
|
Loading…
Reference in New Issue
Block a user