#!/bin/ksh
#
# $Header$

DEVCLASS=$1
DEVNAME=$2

[[ $DEVCLASS != 2 ]] && exit 0
case $DEVNAME in
sd1)	# SD card reader    
	disklabel $DEVNAME | grep i:.*MSDOS > /dev/null
	[[ $? -eq 0 ]] && mount /dev/"$DEVNAME"i
	;;
sd3)	# First USB drive plugged in
	disklabel $DEVNAME | grep i:.*MSDOS > /dev/null
	[[ $? -eq 0 ]] && mount /dev/"$DEVNAME"i
	;;
esac
