summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-02-11 23:31:11 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-04-30 21:46:14 -0500
commita6b7a2fba100b1f46cab4cbef331171fff579cbb (patch)
treea57ddf147f67b0d13ee81e593811373807eacc3b
parentfix typo (diff)
downloadlivecd-tools-a6b7a2fba100b1f46cab4cbef331171fff579cbb.tar.gz
livecd-tools-a6b7a2fba100b1f46cab4cbef331171fff579cbb.tar.bz2
livecd-tools-a6b7a2fba100b1f46cab4cbef331171fff579cbb.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"