summaryrefslogtreecommitdiffstats
path: root/draklive-install-lock-storage
blob: 8d42a5bf1587df7da909a126dbb0f56950011dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/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