projects
/
grml-autoconfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rework config_swspeak once more, move code to script 'swspeak'
[grml-autoconfig.git]
/
autoconfig.functions
diff --git
a/autoconfig.functions
b/autoconfig.functions
index
936a94a
..
0084161
100755
(executable)
--- a/
autoconfig.functions
+++ b/
autoconfig.functions
@@
-826,7
+826,7
@@
config_swspeak(){
if checkbootparam swspeak ; then
einfo "Bootoption swspeak found."
if checkbootparam swspeak ; then
einfo "Bootoption swspeak found."
- if [ ! -d /proc/speakup/ ] && ! grep -q speakup /proc/modules ; then
+ if [ ! -d /proc/speakup/ ] && ! grep -q speakup
_soft
/proc/modules ; then
ewarn "Kernel does not support software speakup - trying to load kernel module:" ; eend 0
eindent
einfo "Loading speakup_soft"
ewarn "Kernel does not support software speakup - trying to load kernel module:" ; eend 0
eindent
einfo "Loading speakup_soft"
@@
-840,20
+840,11
@@
config_swspeak(){
eoutdent
fi
eoutdent
fi
- if [ -d /proc/speakup/ ] || grep -q speakup /proc/modules ; then
+ if [ -d /proc/speakup/ ] || grep -q speakup
_soft
/proc/modules ; then
einfo "Kernel supports speakup." ; eend 0
eindent
einfo "Kernel supports speakup." ; eend 0
eindent
- if [ -x /etc/init.d/speech-dispatcher ] ; then
- einfo "Starting speech-dispatcher."
- /etc/init.d/speech-dispatcher start 1>>DEBUG ; eend $?
- einfo "Activating sftsyn in Kernel."
- echo sftsyn >/proc/speakup/synth_name ; eend $?
einfo "Just run swspeak if you want to use software synthesizer via speakup."
flitewrapper "Finished activating software speakup. Just run swspeak when booting finished."
einfo "Just run swspeak if you want to use software synthesizer via speakup."
flitewrapper "Finished activating software speakup. Just run swspeak when booting finished."
- else
- eerror "speech-dispatcher not available. swspeak will not work without it." ; eend 1
- flitewrapper "speech-dispatcher not available. speakup will not work without it."
- fi
eoutdent
else
eerror "Kernel does not seem to support speakup. Skipping swspeak." ; eend 1
eoutdent
else
eerror "Kernel does not seem to support speakup. Skipping swspeak." ; eend 1