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