diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2005-08-02 08:08:10 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2005-08-02 08:08:10 +0000 |
commit | 1103655bd1ae8b45c858b35a1563bf675406506b (patch) | |
tree | 2bfe91bb17ff2f15e96a081cae6d72e6c592c7b5 /app-accessibility/speechd/files | |
parent | Don't inherit from gtk-engines2.eclass. New version: 0.8 (diff) | |
download | gentoo-2-1103655bd1ae8b45c858b35a1563bf675406506b.tar.gz gentoo-2-1103655bd1ae8b45c858b35a1563bf675406506b.tar.bz2 gentoo-2-1103655bd1ae8b45c858b35a1563bf675406506b.zip |
Cleaned up init script to set permissions on /dev/speech.
(Portage version: 2.0.51.22-r2)
Diffstat (limited to 'app-accessibility/speechd/files')
-rw-r--r-- | app-accessibility/speechd/files/speechd.rc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/app-accessibility/speechd/files/speechd.rc b/app-accessibility/speechd/files/speechd.rc index 362624d04b4d..255742b4a9de 100644 --- a/app-accessibility/speechd/files/speechd.rc +++ b/app-accessibility/speechd/files/speechd.rc @@ -1,7 +1,7 @@ #!/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/files/speechd.rc,v 1.3 2004/08/14 14:33:24 swegener Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd/files/speechd.rc,v 1.4 2005/08/02 08:08:10 eradicator Exp $ depend() { need festival @@ -9,12 +9,19 @@ depend() { start() { ebegin "Starting speechd" - start-stop-daemon --start --quiet --exec /usr/bin/speechd -- -Q + start-stop-daemon --start --group speech --exec /usr/bin/speechd -- -Q + if [[ -p /dev/speech ]] ; then + chmod 660 /dev/speech + chgrp speech /dev/speech + fi eend $? } stop() { ebegin "Stopping speechd" start-stop-daemon --stop --quiet --pidfile /var/run/speechd.pid + if [[ -p /dev/speech ]] ; then + rm /dev/speech + fi eend $? } |