From e9dc9a7d06ca7c8a45966420c64c622f161ab3e6 Mon Sep 17 00:00:00 2001
From: Daniel Schulte <trilader@gmail.com>
Date: Tue, 7 Oct 2014 19:58:50 +0200
Subject: [PATCH] Updated scripts for Ubuntu 14.04

---
 scripts/liprepoctl.sh       | 4 ++--
 scripts/mount-stick-repo.sh | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/liprepoctl.sh b/scripts/liprepoctl.sh
index 7d3a6fd..0250773 100644
--- a/scripts/liprepoctl.sh
+++ b/scripts/liprepoctl.sh
@@ -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()
diff --git a/scripts/mount-stick-repo.sh b/scripts/mount-stick-repo.sh
index f214fe6..5d79dca 100644
--- a/scripts/mount-stick-repo.sh
+++ b/scripts/mount-stick-repo.sh
@@ -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
-- 
GitLab