diff options
author | Nicolas Thill <nico@openwrt.org> | 2011-10-28 13:10:50 +0000 |
---|---|---|
committer | Nicolas Thill <nico@openwrt.org> | 2011-10-28 13:10:50 +0000 |
commit | eaa595d6ac14918dbeafc1d489f9312110276498 (patch) | |
tree | 1350291acca1e46ef0f558931e62845bdbf46943 /include | |
parent | 57334f059f724fa6be13eced3f48782e695ee949 (diff) | |
download | upstream-eaa595d6ac14918dbeafc1d489f9312110276498.tar.gz upstream-eaa595d6ac14918dbeafc1d489f9312110276498.tar.bz2 upstream-eaa595d6ac14918dbeafc1d489f9312110276498.zip |
package/blockmount: simplify extroot module loading logic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28650 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'include')
-rw-r--r-- | include/kernel.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/kernel.mk b/include/kernel.mk index 9e94dce3b9..0df0337c49 100644 --- a/include/kernel.mk +++ b/include/kernel.mk @@ -90,7 +90,8 @@ define ModuleAutoLoad done; \ if [ -e $(2)/etc/modules.d/$$$$$$$$priority-$(1) ]; then \ if [ "$$$$$$$$boot" = "1" ]; then \ - echo '# May be required for rootfs' >> $(2)/etc/modules.d/$$$$$$$$priority-$(1); \ + mkdir -p $(2)/etc/modules-boot.d; \ + ln -s ../modules.d/$$$$$$$$priority-$(1) $(2)/etc/modules-boot.d/; \ fi; \ modules="$$$$$$$${modules:+$$$$$$$$modules }$$$$$$$$priority-$(1)"; \ fi; \ |