summaryrefslogtreecommitdiffstats
path: root/draklive-install-lock-storage
blob: 9a3e87cc917f418ad8caa67525ffcdd2d417119a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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
fi
# run without udisks lock if it fails
[ "$?" != 0 ] && $CMD

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