summaryrefslogtreecommitdiffstats
path: root/draklive-install-lock-storage
blob: a58070567d66de2df6b8c2f69cdafdbbca94473d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

CMD=/usr/sbin/draklive-install

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

# draklive-install will leave swap partitions mounted. Unmount them now.
swapoff -a