package/blockmount: simplify extroot module loading logic

SVN-Revision: 28650
This commit is contained in:
Nicolas Thill
2011-10-28 13:10:50 +00:00
parent b5af64c529
commit 3bcb16b305
3 changed files with 9 additions and 7 deletions

View File

@@ -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; \