From: Felix Fietkau Date: Tue, 17 Oct 2006 21:43:41 +0000 (+0000) Subject: fix module autoload option X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f1a497259b36d3d808a6af2aeed150bd7799400e;p=openwrt%2Fstaging%2Frmilecki.git fix module autoload option SVN-Revision: 5201 --- diff --git a/include/kernel.mk b/include/kernel.mk index 92738172506..7c0ba6d7dd7 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) \