#!/bin/sh
#
# The script to check if specified output enabled for VoiceMan;
# It checks if symlink /etc/voiceman.d/<name>.output exists.
# Copyright (c) 2000-2010 Michael Pozhidaev <msp@altlinux.org>

THIS="${0##*/}"

if [ -z "$1" ]; then
    echo "$THIS:TTS name is not specified" >&2
    exit 1
fi

LINKNAME="/etc/voiceman.d/$1.output"
test -e "$LINKNAME"
exit $?
