]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/busybox/S10mdev
busybox: S01mdev: fix module autoloading
[coffee/buildroot.git] / package / busybox / S10mdev
1 #!/bin/sh
2 #
3 # Start mdev....
4 #
5
6 case "$1" in
7   start)
8         echo "Starting mdev..."
9         echo /sbin/mdev >/proc/sys/kernel/hotplug
10         /sbin/mdev -s
11         # coldplug modules
12         find /sys/ -name modalias -print0 | xargs -0 sort -u | tr '\n' '\0' | \
13             xargs -0 modprobe -abq
14         ;;
15   stop)
16         ;;
17   restart|reload)
18         ;;
19   *)
20         echo "Usage: $0 {start|stop|restart}"
21         exit 1
22 esac
23
24 exit $?