diff options
author | Felix Fietkau <nbd@openwrt.org> | 2006-10-17 21:43:41 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2006-10-17 21:43:41 +0000 |
commit | f1a497259b36d3d808a6af2aeed150bd7799400e (patch) | |
tree | 7c94d6ebc1b576009c3a4b316940b90f75a28983 /include/kernel.mk | |
parent | 4664a13c59dd18997fa0e8af8c5298a6ea96f155 (diff) | |
download | mtk-20170518-f1a497259b36d3d808a6af2aeed150bd7799400e.zip mtk-20170518-f1a497259b36d3d808a6af2aeed150bd7799400e.tar.gz mtk-20170518-f1a497259b36d3d808a6af2aeed150bd7799400e.tar.bz2 |
fix module autoload option
SVN-Revision: 5201
Diffstat (limited to 'include/kernel.mk')
-rw-r--r-- | include/kernel.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 9273817..7c0ba6d 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) \ |