summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-accessibility/espeakup/files/espeakup.initd')
-rw-r--r--app-accessibility/espeakup/files/espeakup.initd18
1 files changed, 18 insertions, 0 deletions
diff --git a/app-accessibility/espeakup/files/espeakup.initd b/app-accessibility/espeakup/files/espeakup.initd
new file mode 100644
index 000000000000..6ef0a339d1c9
--- /dev/null
+++ b/app-accessibility/espeakup/files/espeakup.initd
@@ -0,0 +1,18 @@
+#!/sbin/openrc-run
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/bin/espeakup
+command_args="${espeakup_opts:-${ESPEAKUP_OPTS}}"
+pidfile=/run/espeakup.pid
+
+depend() {
+ after modules
+ use alsasound pulseaudio
+}
+
+start_pre() {
+ [ -f /sys/accessibility/speakup/synth ] &&
+ echo soft > /sys/accessibility/speakup/synth
+ return 0
+}