#!/bin/bash
#
# Use the EVMS CLI to remove the segment manager from a disk.

disk=$1

if [ -z $disk ]; then
	echo "USAGE: `basename $0` disk_name"
	exit 1
fi

evms -s << EOF > /dev/null
remove:${disk}
EOF

