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
|
2018-05-07 20:35:01 +02:00
|
|
|
find /sys/ -name modalias -print0 | xargs -0 sort -u | tr '\n' '\0' | \
|
|
|
|
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 $?
|