commit:     7e8a349d7e261ba648fb3d492b3d5b7b75b7880d
Author:     Ian Jordan <immoloism <AT> gmail <DOT> com>
AuthorDate: Tue Feb  3 06:43:22 2026 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Tue Feb  3 06:43:22 2026 +0000
URL:        https://gitweb.gentoo.org/proj/livecd-tools.git/commit/?id=7e8a349d

Fix espeakup loading

The old method to start espeakup was broken on many
sytems due timing of when the speakup kernel
module loaded for the detection to work correctly.

This new method now works more reliably as it checkes
/proc/cmdline for espeakup then enables the service
as intended. The only machines it stuggles on are
those with very special audio setups that the
dist kernel doesn't work out of the box with.
Fortunately these types of machines seem very
rare.

Signed-off-by: Ian Jordan <immoloism <AT> gmail.com>

 init.d/autoconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init.d/autoconfig b/init.d/autoconfig
index 1ea3335..fd0417f 100644
--- a/init.d/autoconfig
+++ b/init.d/autoconfig
@@ -224,7 +224,7 @@ list_services() {
        local svcs="$(check_svc ${ACPI} acpid)"
        svcs="${svcs} $(check_svc ${ALSA} alsasound)"
        svcs="${svcs} $(check_svc ${ALSA} unmute)"
-       if [ "${SPEAKUP_MODULE}" = "speakup_soft" ]  && rc-service -e espeakup
+       if grep -qw 'dospeakup' /proc/cmdline  && rc-service -e espeakup
        then
                svcs="${svcs} espeakup"
        fi

Reply via email to