mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-29 08:14:08 +00:00
One tool doing one thing and doing it well :)
This commit is contained in:
parent
d7b4313b08
commit
8ec31a1737
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