mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-08-02 16:07:42 +00:00
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....
|
# 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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user