diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-06-02 17:12:29 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-06-02 17:12:29 +0000 |
commit | 64cbc2c3974b233d01a9743a142a72477b9a69fd (patch) | |
tree | 2b8602e9467e0ad2e779e484496ddeb6c4b8bd9f /draklive-install-lock-storage | |
parent | 3f623c51e69918023c250a648d3b67cc8e1d0283 (diff) | |
download | draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar.gz draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar.bz2 draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.tar.xz draklive-install-64cbc2c3974b233d01a9743a142a72477b9a69fd.zip |
use wrapper to lock media managers during live install (not to get popups/automounts about new partitions)
Diffstat (limited to 'draklive-install-lock-storage')
-rwxr-xr-x | draklive-install-lock-storage | 8 |
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 + |