mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:30:37 +02:00
add support for marking specific kernel module packages as potentially being required for mounting the rootfs (patch by cshore)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19878 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
faf7173b4d
commit
99411298b4
@ -70,6 +70,9 @@ define ModuleAutoLoad
|
|||||||
add_module() { \
|
add_module() { \
|
||||||
mkdir -p $(2)/etc/modules.d; \
|
mkdir -p $(2)/etc/modules.d; \
|
||||||
( \
|
( \
|
||||||
|
[ "$$$$$$$$3" = "1" ] && { \
|
||||||
|
echo '# May be required for rootfs' ; \
|
||||||
|
} ; \
|
||||||
for mod in $$$$$$$$2; do \
|
for mod in $$$$$$$$2; do \
|
||||||
getvar mod; \
|
getvar mod; \
|
||||||
done \
|
done \
|
||||||
@ -154,7 +157,7 @@ $(call KernelPackage/$(1)/config)
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define AutoLoad
|
define AutoLoad
|
||||||
add_module $(1) "$(2)";
|
add_module $(1) "$(2)" $(3);
|
||||||
endef
|
endef
|
||||||
|
|
||||||
ifdef DUMP
|
ifdef DUMP
|
||||||
|
Loading…
Reference in New Issue
Block a user