#!/bin/sh

set -e

for volume in `hal-find-by-capability --capability autofs`; do
	if [ "`basename $volume`" = "$1" ]; then
		device=`hal-get-property --udi $volume --key block.device`
		fstype=`hal-get-property --udi $volume --key volume.fstype`
		fsopts=`hal-get-property --udi $volume --key volume.autofs.mount_options`
		echo "-fstype=$fstype,$fsopts :$device"
		exit
	fi
done
