aports/main/mdevd/mdevd-init.initd
Laurent Bercot 7aed739178 main/mdevd: upgrade to 0.1.6.0
Also make the mdevd-init service synchronous (i.e. equivalent
to "udevadm trigger && udevadm settle".)

Signed-off-by: Laurent Bercot <ska@appnovation.com>
2022-08-17 14:22:34 +00:00

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 $?
}