if [ "$ACTION" = "reboot" ]; then
xm destroy "$MACHINE" 2>/dev/null
else
xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
fi
if [ "$ACTION" = "install" ]; then
if [ "$ACTION" = "reboot" ]; then
xm destroy "$MACHINE" 2>/dev/null
else
xm list "$MACHINE" >/dev/null 2>/dev/null && echo "$MACHINE already exists" && exit 1
fi
if [ "$ACTION" = "install" ]; then