]>
Commit | Line | Data |
---|---|---|
6b8e9054 GNS |
1 | # SPDX-License-Identifier: LGPL-2.1-or-later |
2 | # | |
3 | # This file is part of systemd. | |
4 | # | |
5 | # systemd is free software; you can redistribute it and/or modify it | |
6 | # under the terms of the GNU Lesser General Public License as published by | |
7 | # the Free Software Foundation; either version 2.1 of the License, or | |
8 | # (at your option) any later version. | |
9 | ||
10 | SUBSYSTEM!="block", GOTO="iocost_end" | |
fc73d971 | 11 | ENV{DEVTYPE}!="disk", GOTO="iocost_end" |
6b8e9054 GNS |
12 | ACTION=="remove", GOTO="iocost_end" |
13 | ||
c413ae18 YW |
14 | ENV{.MODEL}="" |
15 | ENV{ID_MODEL}!="", ENV{.MODEL}="$env{ID_MODEL}" | |
16 | ENV{ID_MODEL_FROM_DATABASE}!="", ENV{.MODEL}="$env{ID_MODEL_FROM_DATABASE}" | |
17 | ||
18 | ENV{.MODEL}!="", IMPORT{builtin}="hwdb 'block::name:$env{.MODEL}:fwrev:$env{ID_REVISION}:'" | |
6b8e9054 GNS |
19 | |
20 | ENV{IOCOST_SOLUTIONS}!="", RUN+="iocost apply $env{DEVNAME}" | |
21 | ||
22 | LABEL="iocost_end" |