package/busybox: convert S10mdev to the canonical init script format
Signed-off-by: Titouan Christophe <titouan.christophe@railnova.eu> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
3e75e8bb2b
commit
591adcf636
@ -3,21 +3,24 @@
|
||||
# Start mdev....
|
||||
#
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
|
||||
start() {
|
||||
echo "Starting mdev..."
|
||||
echo /sbin/mdev >/proc/sys/kernel/hotplug
|
||||
/sbin/mdev -s
|
||||
# coldplug modules
|
||||
find /sys/ -name modalias -print0 | xargs -0 sort -u | tr '\n' '\0' | \
|
||||
xargs -0 modprobe -abq
|
||||
;;
|
||||
stop)
|
||||
;;
|
||||
restart|reload)
|
||||
find /sys/ -name modalias -print0 | \
|
||||
xargs -0 sort -u | \
|
||||
tr '\n' '\0' | \
|
||||
xargs -0 modprobe -abq
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
"$1"
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
echo "Usage: $0 start"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user