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 | d33c4d9a6d00db869d1130a651b5564350e8ba41 (patch) | |
tree | b6c71148d301c2fa0ece63c19b71ed2d956546d4 | |
parent | fe86705d99c8e7de1a55ee9b9d8697b1f1e26154 (diff) | |
download | upstream-d33c4d9a6d00db869d1130a651b5564350e8ba41.tar.gz upstream-d33c4d9a6d00db869d1130a651b5564350e8ba41.tar.bz2 upstream-d33c4d9a6d00db869d1130a651b5564350e8ba41.zip |
fix module autoload option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5201 3c298f89-4303-0410-b956-a3cf2f4a3e73
-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 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) \ |