summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <eradicator@gentoo.org>2005-08-02 08:08:10 +0000
committerJeremy Huddleston <eradicator@gentoo.org>2005-08-02 08:08:10 +0000
commit1103655bd1ae8b45c858b35a1563bf675406506b (patch)
tree2bfe91bb17ff2f15e96a081cae6d72e6c592c7b5 /app-accessibility
parentDon't inherit from gtk-engines2.eclass. New version: 0.8 (diff)
downloadgentoo-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')
-rw-r--r--app-accessibility/speechd/ChangeLog5
-rw-r--r--app-accessibility/speechd/files/speechd.rc11
2 files changed, 13 insertions, 3 deletions
diff --git a/app-accessibility/speechd/ChangeLog b/app-accessibility/speechd/ChangeLog
index a58709346b33..a050ff91f639 100644
--- a/app-accessibility/speechd/ChangeLog
+++ b/app-accessibility/speechd/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-accessibility/speechd
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd/ChangeLog,v 1.15 2005/08/01 03:11:10 eradicator Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/speechd/ChangeLog,v 1.16 2005/08/02 08:08:10 eradicator Exp $
+
+ 02 Aug 2005; Jeremy Huddleston <eradicator@gentoo.org> files/speechd.rc:
+ Cleaned up init script to set permissions on /dev/speech.
*speechd-0.56-r2 (01 Aug 2005)
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 $?
}