mirror of
https://github.com/systemd/systemd
synced 2024-10-06 16:21:34 +00:00
rule: fallback to use board information if product information is not set
This commit is contained in:
parent
a93306a22e
commit
da60d91c99
|
@ -109,6 +109,9 @@ SUBSYSTEM!="dmi", GOTO="dmi_end"
|
|||
ENV{ID_VENDOR}="$attr{sys_vendor}"
|
||||
ENV{ID_SYSFS_ATTRIBUTE_MODEL}=="|product_name", ENV{ID_MODEL}="$attr{product_name}"
|
||||
ENV{ID_SYSFS_ATTRIBUTE_MODEL}=="product_version", ENV{ID_MODEL}="$attr{product_version}"
|
||||
# fallback to board information
|
||||
ENV{ID_VENDOR}=="", ENV{ID_VENDOR}="$attr{board_vendor}"
|
||||
ENV{ID_MODEL}=="", ENV{ID_MODEL}="$attr{board_name}"
|
||||
LABEL="dmi_end"
|
||||
|
||||
LABEL="default_end"
|
||||
|
|
Loading…
Reference in a new issue