diff options
author | William Hubbs <williamh@gentoo.org> | 2008-04-24 13:31:49 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2008-04-24 13:31:49 +0000 |
commit | effcd5537396d35c0bc440ae08bbe9529201f7f8 (patch) | |
tree | 99898787a6751fdeb0d25f1f5ad24fab3fc8478e /app-accessibility/speechd-up/files | |
parent | Add sse2 USE flag, bug#217907 (diff) | |
download | gentoo-2-effcd5537396d35c0bc440ae08bbe9529201f7f8.tar.gz gentoo-2-effcd5537396d35c0bc440ae08bbe9529201f7f8.tar.bz2 gentoo-2-effcd5537396d35c0bc440ae08bbe9529201f7f8.zip |
Updated to support speakup-3.0.2
(Portage version: 2.1.5_rc6)
Diffstat (limited to 'app-accessibility/speechd-up/files')
-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 $? |