summaryrefslogtreecommitdiffstats
path: root/draklive-install-lock-storage
diff options
context:
space:
mode:
authorDexter Morgan <dmorgan@mageia.org>2011-06-02 20:52:24 +0000
committerDexter Morgan <dmorgan@mageia.org>2011-06-02 20:52:24 +0000
commit97d6c771b5bdce730aa6fb39fcd4ec2594503649 (patch)
tree129e205dd4d6cdf2f3fd3488d5e0d13c5cad23b7 /draklive-install-lock-storage
downloaddraklive-install-97d6c771b5bdce730aa6fb39fcd4ec2594503649.tar
draklive-install-97d6c771b5bdce730aa6fb39fcd4ec2594503649.tar.gz
draklive-install-97d6c771b5bdce730aa6fb39fcd4ec2594503649.tar.bz2
draklive-install-97d6c771b5bdce730aa6fb39fcd4ec2594503649.tar.xz
draklive-install-97d6c771b5bdce730aa6fb39fcd4ec2594503649.zip
Branch for updates
Diffstat (limited to 'draklive-install-lock-storage')
-rwxr-xr-xdraklive-install-lock-storage8
1 files changed, 8 insertions, 0 deletions
diff --git a/draklive-install-lock-storage b/draklive-install-lock-storage
new file mode 100755
index 0000000..e003053
--- /dev/null
+++ b/draklive-install-lock-storage
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+CMD=/usr/sbin/draklive-install
+
+hal-lock --interface org.freedesktop.Hal.Device.Storage --exclusive --run $CMD
+# run without hal lock if it fails
+[ "$?" != 0 ] && $CMD
+