#!/bin/sh
#
# unmount script for hotplugable block device
#				Shuu Yamaguchi <shuu@dotAster.com>
#
# $Id: block_umount,v 1.1 2003/09/21 04:55:31 shuu Exp shuu $
#

. /etc/murasaki/bin/block_functions

initialize
if [ $STATUS -ne 0 ];then
	exit 1;
fi

check_mount
if [ $MOUNTED -eq 0 ];then
	exit 0;
fi

umount /dev/$DEV
