fix module autoload option

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@5201 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2006-10-17 21:43:41 +00:00
parent fe86705d99
commit d33c4d9a6d
1 changed files with 5 additions and 1 deletions

View File

@ -70,7 +70,11 @@ define ModuleAutoLoad
export modules=; \ export modules=; \
add_module() { \ add_module() { \
mkdir -p $(2)/etc/modules.d; \ 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)"; \ modules="$$$$$$$${modules:+$$$$$$$$modules }$$$$$$$$1-$(1)"; \
}; \ }; \
$(3) \ $(3) \