]> code.ossystems Code Review - openembedded-core.git/commit
modutils-initscripts: improve modutils.sh
authorLaurentiu Palcu <laurentiu.palcu@intel.com>
Thu, 17 Jan 2013 14:58:43 +0000 (16:58 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Jan 2013 13:06:21 +0000 (13:06 +0000)
commitf2d6e84cb1694e2365beca331439bb2d23843a5b
tree4eba73b805f4b875440d7401f1c9d92aec602436
parenta5de76317112fc065a78a745c2f23775dca15d75
modutils-initscripts: improve modutils.sh

modutils.sh reads /etc/modules to load the listed modules at boot time.
/etc/modules is generated by update-modules which scans
/etc/modules-load.d directory. However, update-modules became obsolete
because the files it generates are not used by modprobe anymore.

Hence, change modutils.sh to scan also /etc/modules-load.d/*.conf and
load the modules listed there.

Basically, the behavior is this:
 * if /etc/modules exists, load those modules;
 * if the directory /etc/modules-load.d exists, load the modules listed
   in the .conf files but ignore those already loaded (from
   /etc/modules);

[YOCTO #3598]

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/modutils-initscripts/files/modutils.sh