Commit e9dc9a7d authored by Daniel Schulte's avatar Daniel Schulte

Updated scripts for Ubuntu 14.04

parent 972c924c
......@@ -3,8 +3,8 @@
ACTION="$1"
FILENAME="/etc/apt/sources.list.d/lipoffline.list"
ACTIVATED=`test -e "$FILENAME"`
DIST_CODENAME="saucy"
DIST_VERSION="13.10"
DIST_CODENAME="trusty"
DIST_VERSION="14.04"
function install_repo()
......
......@@ -44,11 +44,11 @@ else
echo "Stick gefunden als $DEV"
# ask udisks to mount it always.
udisksctl mount --block-device "$DEV"
udisksctl mount --block-device "$DEV" || true
# see where it is mounted
DEVFILE=${DEV#/dev/}
MPOINT="$(dbus-send --print-reply=literal --system --dest=org.freedesktop.UDisks /org/freedesktop/UDisks/devices/${DEVFILE} org.freedesktop.DBus.Properties.Get string:'org.freedesktop.UDisks.Device' string:'DeviceMountPaths' | tail -n +2 | tr -d "\ \]\[" | head -n 1)"
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)"
echo "Der Stick it als '$MPOINT' gemountet"
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment