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