pkg: Add support for cold-plugged devices to init
mdev only supports hot-plug, ie devices which are added
after the kernel booted. For cold-plugged devices, ie devices
present when the kernel boots, we need to modprobe the drivers
differently. The additions to rc.init does just that.
@@ -75,6 +75,9 @@ done
mdev -s
+# Load modules for cold-plugged devices (ie devices present on boot)
+grep -h MODALIAS /sys/bus/*/devices/*/uevent | cut -d= -f2 | xargs modprobe -abq 2> /dev/null
+
# set hostname
if [ -s /etc/hostname ]
then
