mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-11 01:32:07 +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
|
# # check where it is mounted
|
||||||
# usbmount=`cat /proc/mounts | awk -v p=$usbpart '{ if( $1 == "/dev/" p) print $2 }'`
|
# 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
|
# mount the first partition on the usb key
|
||||||
mtmp=`tempfile -p tomb`
|
# mtmp=`tempfile -p tomb`
|
||||||
rm -f $mtmp
|
# rm -f $mtmp
|
||||||
mkdir -p $mtmp
|
# mkdir -p $mtmp
|
||||||
|
mtmp=$(/bin/mktemp -d --tmpdir tomb.XXXXXXXXXXXX)
|
||||||
mount /dev/$usbpart $mtmp
|
mount /dev/$usbpart $mtmp
|
||||||
if [ $? = 0 ]; then
|
if [ $? = 0 ]; then
|
||||||
usbmount=$mtmp
|
usbmount=$mtmp
|
||||||
|
Loading…
Reference in New Issue
Block a user