summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdraklive-install-lock-storage7
1 files changed, 6 insertions, 1 deletions
diff --git a/draklive-install-lock-storage b/draklive-install-lock-storage
index 0f7101e..8d42a5b 100755
--- a/draklive-install-lock-storage
+++ b/draklive-install-lock-storage
@@ -2,6 +2,11 @@
CMD=/usr/sbin/draklive-install
-/usr/bin/udisks --inhibit -- $CMD
+ps -C udisksd > /dev/null
+if [ $? -eq 0 -a -x /usr/lib/udisks2/udisks2-inhibit ] ; then
+ /usr/lib/udisks2/udisks2-inhibit $CMD
+else
+ /usr/bin/udisks --inhibit -- $CMD
+fi
# run without udisks lock if it fails
[ "$?" != 0 ] && $CMD