From b934d28953c11d52b45a6d4165dd9dfa565920af Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 27 Sep 2008 16:34:18 +0200 Subject: [PATCH] Rework /proc stuff of speakup --- autoconfig.functions | 11 +++++++++-- debian/changelog | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/autoconfig.functions b/autoconfig.functions index 936a94a..7af72a2 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -846,8 +846,15 @@ config_swspeak(){ 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 $? + if [ -r /proc/speakup/synth_name ] ; then + einfo "Activating sftsyn via /proc in Kernel." + echo sftsyn > /proc/speakup/synth_name ; eend $? + elif [ -r /sys/modules/speakup/parameters/synth ] ; then + einfo "Activating sftsyn via /sys in Kernel." + echo sftsyn > /sys/modules/speakup/parameters/synth ; eend $? + else + eerror "Error when configuring sftsyn via /proc or /sys." ; eend 1 + fi 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 diff --git a/debian/changelog b/debian/changelog index cf6bd7a..e135ace 100644 --- a/debian/changelog +++ b/debian/changelog @@ -7,7 +7,7 @@ grml-autoconfig (0.8.13) unstable; urgency=low * Add config_hwspeak for supporting hardware speakup from userspace. * Wrap flite calls through a wrapper function. - -- Michael Prokop Sat, 27 Sep 2008 16:11:53 +0200 + -- Michael Prokop Sat, 27 Sep 2008 16:34:03 +0200 grml-autoconfig (0.8.12) unstable; urgency=low -- 2.1.4