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:
Titouan Christophe 2019-06-19 18:42:56 +02:00 committed by Thomas Petazzoni
parent 3e75e8bb2b
commit 591adcf636

View File

@ -3,21 +3,24 @@
# Start mdev.... # Start mdev....
# #
case "$1" in
start) start() {
echo "Starting mdev..." echo "Starting mdev..."
echo /sbin/mdev >/proc/sys/kernel/hotplug echo /sbin/mdev >/proc/sys/kernel/hotplug
/sbin/mdev -s /sbin/mdev -s
# coldplug modules # coldplug modules
find /sys/ -name modalias -print0 | xargs -0 sort -u | tr '\n' '\0' | \ find /sys/ -name modalias -print0 | \
xargs -0 sort -u | \
tr '\n' '\0' | \
xargs -0 modprobe -abq xargs -0 modprobe -abq
;; }
stop)
;; case "$1" in
restart|reload) start)
"$1"
;; ;;
*) *)
echo "Usage: $0 {start|stop|restart}" echo "Usage: $0 start"
exit 1 exit 1
esac esac