projects/aports·blob master · refs

17 lines · 322 B

1#!/sbin/openrc-run
2# Copyright 2022 Laurent Bercot for Alpine Linux
3# Distributed under the terms of the ISC License.
4
5description="coldplug trigger for mdevd"
6
7depend() {
8 need mdevd
9 before checkfs fsck
10 keyword -containers -vserver -lxc
11}
12
13start() {
14 ebegin "Scanning hardware for mdevd"
15 mdevd-coldplug -O4
16 eend $?
17}