diff --git a/scripts/mount-stick-repo.sh b/scripts/mount-stick-repo.sh index 5d79dcaaec6ea613658c9dd9a0782b579d8b2f83..88dcf8ef9b4a740a199f4e5614e763f29bd53493 100644 --- a/scripts/mount-stick-repo.sh +++ b/scripts/mount-stick-repo.sh @@ -48,7 +48,8 @@ else # see where it is mounted DEVFILE=${DEV#/dev/} - MPOINT="$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2/block_devices/${DEVFILE} org.freedesktop.DBus.Properties.Get string:'org.freedesktop.UDisks2.Filesystem' string:'MountPoints' | tail -n +3 | tr -d "\ \]\[" | head -n 1 | xxd -r -p)" +# MPOINT="$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UDisks2 /org/freedesktop/UDisks2/block_devices/${DEVFILE} org.freedesktop.DBus.Properties.Get string:'org.freedesktop.UDisks2.Filesystem' string:'MountPoints' | tail -n +3 | tr -d "\ \]\[" | head -n 1 | xxd -r -p)" +MPOINT="$(udisksctl info --block-device "$DEV" | grep "MountPoints:" | tr -d ' ' | cut -d ':' -f2)" echo "Der Stick it als '$MPOINT' gemountet" fi