From: | "William Hubbs (williamh)" <williamh@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-accessibility/speechd-up/files: speechd-up.rc |
Date: | Thu, 24 Apr 2008 13:31:56 |
Message-Id: | E1Jp1YE-0000Tl-4o@stork.gentoo.org |
1 | williamh 08/04/24 13:31:50 |
2 | |
3 | Modified: speechd-up.rc |
4 | Log: |
5 | Updated to support speakup-3.0.2 |
6 | (Portage version: 2.1.5_rc6) |
7 | |
8 | Revision Changes Path |
9 | 1.7 app-accessibility/speechd-up/files/speechd-up.rc |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc?rev=1.7&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc?rev=1.7&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc?r1=1.6&r2=1.7 |
14 | |
15 | Index: speechd-up.rc |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc,v |
18 | retrieving revision 1.6 |
19 | retrieving revision 1.7 |
20 | diff -u -r1.6 -r1.7 |
21 | --- speechd-up.rc 30 May 2007 04:05:27 -0000 1.6 |
22 | +++ speechd-up.rc 24 Apr 2008 13:31:49 -0000 1.7 |
23 | @@ -1,20 +1,19 @@ |
24 | #!/sbin/runscript |
25 | # Copyright 1999-2004 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc,v 1.6 2007/05/30 04:05:27 williamh Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd-up/files/speechd-up.rc,v 1.7 2008/04/24 13:31:49 williamh Exp $ |
29 | + |
30 | +SPEAKUPDEV=/dev/softsynth |
31 | +SPEAKUPDIR=/sys/module/speakup/parameters |
32 | |
33 | depend() { |
34 | use eflite festival |
35 | need speech-dispatcher |
36 | } |
37 | |
38 | -SPEAKUPDIR=/proc/speakup |
39 | -SPEAKUPDEV=/dev/softsynth |
40 | - |
41 | -load_speakup() { |
42 | +check_speakup() { |
43 | if [ ! -d ${SPEAKUPDIR} ]; then |
44 | - eerror "Speakup is either not part of the kernel or the main" |
45 | - eerror "part of it is built as a module." |
46 | + eerror "Speakup is not currently running." |
47 | eerror "Please correct this before using speechd-up." |
48 | return 1 |
49 | fi |
50 | @@ -22,12 +21,12 @@ |
51 | if [ ! -c ${SPEAKUPDEV} ]; then |
52 | mknod ${SPEAKUPDEV} c 10 26 |
53 | fi |
54 | - echo sftsyn > ${SPEAKUPDIR}/synth_name |
55 | + echo soft > ${SPEAKUPDIR}/synth |
56 | sleep 1 |
57 | } |
58 | |
59 | start() { |
60 | - load_speakup || return 1 |
61 | + check_speakup || return 1 |
62 | ebegin "Starting speechd-up" |
63 | start-stop-daemon --start --quiet --nicelevel ${NICELEVEL} --exec /usr/bin/speechd-up -- -d -t |
64 | eend $? |
65 | |
66 | |
67 | |
68 | -- |
69 | gentoo-commits@l.g.o mailing list |