#!/bin/sh

module="mmcdev"
device="mmcdev"

# remove the module from kernel
if [ ! "$(grep mmcdev /proc/modules)" = "" ]; then
	# remove the module from the executing kernel
	/sbin/rmmod $module $* || exit 1
fi

# Remove stale nodes
rm -f /dev/${device}
