On Mon, Aug 30, 2010 at 13:10:01 +0200, Michael Biebl wrote:

> if [ -f /var/run/dbus/system_bus_socket ] ; then
>   pid=$(dbus-send --system --dest=org.freedesktop.DBus --print-reply \
>    /org/freedesktop/DBus org.freedesktop.DBus.GetConnectionUnixProcessID \
>    string:'org.freedesktop.UDisks' 2>/dev/null | grep uint32 | awk '{print 
> $2}')
> 
>   [ -n "$pid" ] && kill $pid / restart etc.
> fi
> 
make it | awk '/uint32/ { print $2 }' to avoid the grep ;)

Cheers,
Julien

Attachment: signature.asc
Description: Digital signature

Reply via email to