07f46c2b6d
A recently discussed on the mailing list: http://lists.busybox.net/pipermail/buildroot/2016-February/154189.html Our mdev configuration currently doesn't handle module loading. Fix that by: - Telling mdev to run modprobe on hotplug events providing MODALIAS - Adjust the init script to handle coldplug modalias events (E.G. modules for which the devices were already present before mdev was added as the hotplug handler). mdev -s should arguable handle this, but it doesn't. Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
24 lines
326 B
Bash
24 lines
326 B
Bash
#!/bin/sh
|
|
#
|
|
# Start mdev....
|
|
#
|
|
|
|
case "$1" in
|
|
start)
|
|
echo "Starting mdev..."
|
|
echo /sbin/mdev >/proc/sys/kernel/hotplug
|
|
/sbin/mdev -s
|
|
# coldplug modules
|
|
find /sys/ -name modalias | xargs sort -u | xargs modprobe -abq
|
|
;;
|
|
stop)
|
|
;;
|
|
restart|reload)
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop|restart}"
|
|
exit 1
|
|
esac
|
|
|
|
exit $?
|