#! /bin/sh

# This hack only works if devices are properly called and configured from
# /etc/mdtab

action="$1"
shift

case "$action" in
	start)
		mdadd $@
		;;
	stop)
		mdstop $@
		;;
	*)
		echo "$0: don't know how to do that. Exiting."
		exit 1
		;;
esac