summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2011-02-10 21:09:37 +0000
committerWilliam Hubbs <williamh@gentoo.org>2011-04-30 21:42:35 -0500
commit353af9d347ee91ea799d5c22b6816df10122583c (patch)
treebd1f5d131b27b0eba29196bbb7ed18fe3bf6926b
parentAdd conversion of GPM as first example for BL2 work. (diff)
downloadlivecd-tools-353af9d347ee91ea799d5c22b6816df10122583c.tar.gz
livecd-tools-353af9d347ee91ea799d5c22b6816df10122583c.tar.bz2
livecd-tools-353af9d347ee91ea799d5c22b6816df10122583c.zip
Hook up list_services to depend need call.
-rwxr-xr-xautoconfig33
1 files changed, 32 insertions, 1 deletions
diff --git a/autoconfig b/autoconfig
index 4763bc2..f4a9a6d 100755
--- a/autoconfig
+++ b/autoconfig
@@ -203,7 +203,7 @@ get_config() {
}
depend() {
- need modules
+ need modules $(list_services)
before net
}
@@ -225,6 +225,37 @@ check_svc() {
# Prints an ordered list of services that will be started by autoconfig.
list_services() {
get_config
+ # Must not print anything here
+ if [ "${DETECT}" = "yes" ]
+ then
+ local arch="$(uname -m)"
+
+ case ${arch} in
+ mips*)
+ ACPI="no"
+ APM="no"
+ IDEDMA="no"
+ ;;
+ i?86|x86_64)
+ :
+ ;;
+ alpha)
+ ACPI="no"
+ APM="no"
+ ;;
+ sparc*)
+ ACPI="no"
+ APM="no"
+ ;;
+ powerpc*)
+ ACPI="no"
+ APM="no"
+ ;;
+ ia64)
+ APM="no"
+ ;;
+ esac
+ fi
local svcs="$(check_svc ${ACPI} acpid)"
svcs="${svcs} $(check_svc ${ALSA} alsasound)"