diff options
author | 2008-04-24 13:31:49 +0000 | |
---|---|---|
committer | 2008-04-24 13:31:49 +0000 | |
commit | b7ea4ec474350ce064b93a15f9df54ad38411bb2 (patch) | |
tree | f888bfc4f6e27f45aa48614d394299e493921fd6 /app-accessibility/speechd-up/files/speechd-up.rc | |
parent | Add sse2 USE flag, bug#217907 (diff) | |
download | historical-b7ea4ec474350ce064b93a15f9df54ad38411bb2.tar.gz historical-b7ea4ec474350ce064b93a15f9df54ad38411bb2.tar.bz2 historical-b7ea4ec474350ce064b93a15f9df54ad38411bb2.zip |
Updated to support speakup-3.0.2
Package-Manager: portage-2.1.5_rc6
Diffstat (limited to 'app-accessibility/speechd-up/files/speechd-up.rc')
-rw-r--r-- | app-accessibility/speechd-up/files/speechd-up.rc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/app-accessibility/speechd-up/files/speechd-up.rc b/app-accessibility/speechd-up/files/speechd-up.rc index 6e2fa1c6acf6..d4b9ec5a17a8 100644 --- a/app-accessibility/speechd-up/files/speechd-up.rc +++ b/app-accessibility/speechd-up/files/speechd-up.rc @@ -1,20 +1,19 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc,v 1.6 2007/05/30 04:05:27 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc,v 1.7 2008/04/24 13:31:49 williamh Exp $ + +SPEAKUPDEV=/dev/softsynth +SPEAKUPDIR=/sys/module/speakup/parameters depend() { use eflite festival need speech-dispatcher } -SPEAKUPDIR=/proc/speakup -SPEAKUPDEV=/dev/softsynth - -load_speakup() { +check_speakup() { if [ ! -d ${SPEAKUPDIR} ]; then - eerror "Speakup is either not part of the kernel or the main" - eerror "part of it is built as a module." + eerror "Speakup is not currently running." eerror "Please correct this before using speechd-up." return 1 fi @@ -22,12 +21,12 @@ load_speakup() { if [ ! -c ${SPEAKUPDEV} ]; then mknod ${SPEAKUPDEV} c 10 26 fi - echo sftsyn > ${SPEAKUPDIR}/synth_name + echo soft > ${SPEAKUPDIR}/synth sleep 1 } start() { - load_speakup || return 1 + check_speakup || return 1 ebegin "Starting speechd-up" start-stop-daemon --start --quiet --nicelevel ${NICELEVEL} --exec /usr/bin/speechd-up -- -d -t eend $? |