sysklogd: fix build on musl
[buildroot-gz.git] / package / busybox / S10mdev
blob63ca955b1c551671dc18adac4f7e961430c1a675
1 #!/bin/sh
3 # Start mdev....
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 -z | xargs -0 modprobe -abq
14 stop)
16 restart|reload)
19 echo "Usage: $0 {start|stop|restart}"
20 exit 1
21 esac
23 exit $?