#!/bin/bash
# AQ
# 20120913

for device in /dev/disk/by-id/usb*part*; do
    devname=`echo $device | sed "s/^.*.\///"`
    udisks --mount $device
    if [ $? -eq 0 ] ; then
	zenity --info --text="Device $devname mounted"
    else
	zenity --error --text="Error mounting $devname"
    fi
done
