summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-02-12 16:14:32 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-04-30 21:46:14 -0500
commit2778869c6397a8845bdd60523fe2a45b17456778 (patch)
tree6766da9e9542d360cd130188d5be476b76549ff2
parentadjust fixinittab (diff)
downloadlivecd-tools-2778869c6397a8845bdd60523fe2a45b17456778.tar.gz
livecd-tools-2778869c6397a8845bdd60523fe2a45b17456778.tar.bz2
livecd-tools-2778869c6397a8845bdd60523fe2a45b17456778.zip
load speakup modules in depend function
-rwxr-xr-xautoconfig12
1 files changed, 7 insertions, 5 deletions
diff --git a/autoconfig b/autoconfig
index ed588d6..3d3c71f 100755
--- a/autoconfig
+++ b/autoconfig
@@ -201,6 +201,13 @@ get_config() {
}
depend() {
+ get_config
+
+ if yesno "${SPEAKUP}"
+ then
+ modprobe ${SPEAKUP_MODULE} ${SPEAKUP_OPTIONS} > /dev/null 2>&1
+ fi
+
need modules $(list_services)
before net
}
@@ -255,11 +262,6 @@ 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)"