aports/main/mdevd/mdevd-init.initd
Laurent Bercot 7017027d86 main/mdevd: move from testing
Also add openrc scripts; prepare for the setup-devd switch.
2022-05-16 17:55:43 +02:00

18 lines
318 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
eend $?
}