mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 14:56:46 +02:00
Also make the mdevd-init service synchronous (i.e. equivalent to "udevadm trigger && udevadm settle".) Signed-off-by: Laurent Bercot <ska@appnovation.com>
17 lines
322 B
Bash
17 lines
322 B
Bash
#!/sbin/openrc-run
|
|
# Copyright 2022 Laurent Bercot for Alpine Linux
|
|
# Distributed under the terms of the ISC License.
|
|
|
|
description="coldplug trigger for mdevd"
|
|
|
|
depend() {
|
|
need mdevd
|
|
before checkfs fsck
|
|
keyword -containers -vserver -lxc
|
|
}
|
|
|
|
start() {
|
|
ebegin "Scanning hardware for mdevd"
|
|
mdevd-coldplug -O4
|
|
eend $?
|
|
}
|