X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/378a89660ea7f2c85a6e3a765898872788a838d1..7a36f263beb1cfbd732e1f40e5e8ff8d5bb1f721:/include/kernel.mk diff --git a/include/kernel.mk b/include/kernel.mk index 9e94dce3b..0df0337c4 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; \