summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-10-17 21:43:41 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-10-17 21:43:41 +0000
commitf1a497259b36d3d808a6af2aeed150bd7799400e (patch)
tree7c94d6ebc1b576009c3a4b316940b90f75a28983 /include
parent4664a13c59dd18997fa0e8af8c5298a6ea96f155 (diff)
downloadmaster-31e0f0ae-f1a497259b36d3d808a6af2aeed150bd7799400e.tar.gz
master-31e0f0ae-f1a497259b36d3d808a6af2aeed150bd7799400e.tar.bz2
master-31e0f0ae-f1a497259b36d3d808a6af2aeed150bd7799400e.zip
fix module autoload option
SVN-Revision: 5201
Diffstat (limited to 'include')
-rw-r--r--include/kernel.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 9273817250..7c0ba6d7dd 100644
--- a/include/kernel.mk
+++ b/include/kernel.mk
@@ -70,7 +70,11 @@ define ModuleAutoLoad
export modules=; \
add_module() { \
mkdir -p $(2)/etc/modules.d; \
- echo "$$$$$$$$2" > $(2)/etc/modules.d/$$$$$$$$1-$(1); \
+ ( \
+ for mod in $$$$$$$$2; do \
+ getvar mod; \
+ done \
+ ) > $(2)/etc/modules.d/$$$$$$$$1-$(1); \
modules="$$$$$$$${modules:+$$$$$$$$modules }$$$$$$$$1-$(1)"; \
}; \
$(3) \