summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-02-11 23:31:11 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-02-11 23:31:11 -0600
commit0fcc8a96944d868a9d10d5df72181bdcdc4d0ff1 (patch)
treef99c77fd597427d10e783bed49e35e82ac356846
parentfix typo (diff)
downloadlivecd-tools-0fcc8a96944d868a9d10d5df72181bdcdc4d0ff1.tar.gz
livecd-tools-0fcc8a96944d868a9d10d5df72181bdcdc4d0ff1.tar.bz2
livecd-tools-0fcc8a96944d868a9d10d5df72181bdcdc4d0ff1.zip
load speakup module before espeakup is run
This change will make sure that the speakup module is loaded into memory before espeakup is run in case the user wants to use software speech.
-rwxr-xr-xautoconfig10
1 files changed, 5 insertions, 5 deletions
diff --git a/autoconfig b/autoconfig
index 5a9c679..ed588d6 100755
--- a/autoconfig
+++ b/autoconfig
@@ -255,6 +255,11 @@ list_services() {
esac
fi
+ if yesno "${SPEAKUP}"
+ then
+ modprobe ${SPEAKUP_MODULE} ${SPEAKUP_OPTIONS} 2> /dev/null
+ fi
+
local svcs="$(check_svc ${ACPI} acpid)"
svcs="${svcs} $(check_svc ${ALSA} alsasound)"
svcs="${svcs} $(check_svc ${ALSA} unmute)"
@@ -405,11 +410,6 @@ start() {
echo "0" > /proc/sys/kernel/printk
get_config
- if yesno "${SPEAKUP}"
- then
- modprobe ${SPEAKUP_MODULE} ${SPEAKUP_OPTIONS}
- fi
-
if yesno "${DETECT}"
then
ebegin "Hardware detection started"