#!/bin/sh

if [ $SUBSYSTEM = "block" ]; then
	if [ $ACTION = "add" ]; then
		if [ ! -d ${PHYSDEVDRIVER} ]; then
			mkdir /mnt/${PHYSDEVDRIVER}
		fi;

		sleep 1
		
		mount -t vfat -o iocharset=iso8859-1,utf8 $DEVNAME /mnt/${PHYSDEVDRIVER}

	else
		umount /mnt/${PHYSDEVDRIVER}

		sleep 1

		rmdir /mnt/${PHYSDEVDRIVER}
	fi;
fi;

