#!/bin/sh
#
# The script to remove specified TTS support from the VoiceMan speech system.
# It removes symlink /etc/voiceman.d/<name>.voiceman.
# Copyright (c) 2000-2008 Michael Pozhidaev <msp@altlinux.org>

if [ "$1" == '' ]; then
   echo "$0:TTS name is not specified"
   exit 1
fi

LINKNAME="/etc/voiceman.d/$1.voiceman"

if ! [ -e "$LINKNAME" ]; then
   echo "warning:$LINKNAME does not exist"
fi

rm -f "$LINKNAME"
