#! /bin/sh

/sbin/usb_leds

if [ "$ACTION" = "add" ]
then
	#echo keroro >> /tmp/test
	#echo $MDEV >> /tmp/test
	#echo $ACTION >> /tmp/test
	[ -d /mnt/$MDEV ] || {
		mkdir -p /mnt/$MDEV
	}
	mount /dev/$MDEV /mnt/$MDEV
	RET=$?
	[ "$RET" = "0" ] || {
		echo "mount error"
	}
	exit 0
fi

if [ "$ACTION" = "remove" ]
then
	#echo tamama >> /tmp/test
	#echo $MDEV >> /tmp/test
	#echo $ACTION >> /tmp/test
	[ -d /mnt/$MDEV ] || {
		echo 
	}
	umount /mnt/$MDEV
	RET=$?
	[ "$RET" = "0" ] || {
		echo "umount error"
	}
	exit 0
fi
