]> code.ossystems Code Review - openembedded-core.git/commitdiff
busybox-mdev: Add hotplug kernel module support to mdev.conf
authormike.looijmans@topic.nl <mike.looijmans@topic.nl>
Thu, 18 Dec 2014 14:19:24 +0000 (15:19 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 19 Dec 2014 18:06:46 +0000 (18:06 +0000)
Add a line to mdev.conf that tells mdev to load kernel modules when
required.

For example, if you built wifi support as an external module, inserting
a wifi stick into a USB port will now automatically load that module
into the kernel and the wlan device will be ready for configuration.
Without this patch, you have to load required modules manually or force
them to load at system startup.

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/busybox/files/mdev.conf

index e688911ff196a5738acf34924bee2174e4e4e083..6dfd161fa0bf682d088a97f6c2ad38b1b8c388ff 100644 (file)
@@ -1,3 +1,5 @@
+$MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
+
 console 0:0 0600 
 cpu_dma_latency 0:0 0660 
 fb0:0 44 0660