2010-09-30 14:57:53 +02:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Start mdev....
|
|
|
|
#
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
echo "Starting mdev..."
|
2013-07-28 16:15:52 +02:00
|
|
|
echo /sbin/mdev >/proc/sys/kernel/hotplug
|
2010-09-30 14:57:53 +02:00
|
|
|
/sbin/mdev -s
|
2016-03-09 00:03:25 +01:00
|
|
|
# coldplug modules
|
2016-07-01 20:56:19 +02:00
|
|
|
find /sys/ -name modalias -print0 | xargs -0 sort -u -z | xargs -0 modprobe -abq
|
2010-09-30 14:57:53 +02:00
|
|
|
;;
|
|
|
|
stop)
|
|
|
|
;;
|
|
|
|
restart|reload)
|
|
|
|
;;
|
|
|
|
*)
|
2012-03-15 22:08:09 +01:00
|
|
|
echo "Usage: $0 {start|stop|restart}"
|
2010-09-30 14:57:53 +02:00
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit $?
|