#!/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