1 2 3 4 5 6 7 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