summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-17 21:43:41 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2006-10-17 21:43:41 +0000
commit66dc49ab6471b55b38fa2103d9b11473c0b66611 (patch)
treeb6c71148d301c2fa0ece63c19b71ed2d956546d4
parent8b1c0ef4d59049fd959cd2dbcd8acc094ce575f9 (diff)
fix module autoload option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5201 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--include/kernel.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk
index 927381725..7c0ba6d7d 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) \