summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2011-02-12 16:14:32 -0600
committerWilliam Hubbs <williamh@gentoo.org>2011-02-12 16:14:32 -0600
commit5691822e71310ea3fc127e0ee3ae0f8f6b0a2bee (patch)
tree8352bb16ae1c731172f3f457eccf82ab483254a9 /autoconfig
parentadjust fixinittab (diff)
downloadlivecd-tools-5691822e71310ea3fc127e0ee3ae0f8f6b0a2bee.tar.gz
livecd-tools-5691822e71310ea3fc127e0ee3ae0f8f6b0a2bee.tar.bz2
livecd-tools-5691822e71310ea3fc127e0ee3ae0f8f6b0a2bee.zip
load speakup modules in depend function
Diffstat (limited to 'autoconfig')
-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)"