forked from eudev-project/eudev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge suitable rules changes from systemd
Merge up to commit 5674b74c4f99e433fd8e7242e9f16f6ddfece94c - change @bindir@ to {{ROOTBINDIR}} in templates (better future tracking) - keep rules/50-udev-default.rules as plain instead of template - add 60-autosuspend.rules 60-fido-id.rules 70-camera.rules 70-memory.rules 81-net-dhcp.rules
- Loading branch information
Showing
16 changed files
with
173 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# do not edit this file, it will be overwritten on update | ||
|
||
ACTION!="add", GOTO="autosuspend_end" | ||
|
||
# I2C rules | ||
SUBSYSTEM=="i2c", ATTR{name}=="cyapa", \ | ||
ATTR{power/control}="on", GOTO="autosuspend_end" | ||
|
||
# Enable autosuspend if hwdb says so. Here we are relying on | ||
# the hwdb import done earlier based on MODALIAS. | ||
ENV{ID_AUTOSUSPEND}=="1", TEST=="power/control", \ | ||
ATTR{power/control}="auto" | ||
|
||
# Disable USB persist if hwdb says so. | ||
ENV{ID_PERSIST}=="0", TEST=="power/persist", \ | ||
ATTR{power/persist}="0" | ||
|
||
LABEL="autosuspend_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# do not edit this file, it will be overwritten on update | ||
|
||
ACTION=="remove", GOTO="fido_id_end" | ||
|
||
SUBSYSTEM=="hidraw", IMPORT{program}="fido_id" | ||
|
||
# Tag any form of security token as such | ||
ENV{ID_SECURITY_TOKEN}=="1", TAG+="security-device" | ||
|
||
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0b????:*", ENV{ID_SMARTCARD_READER}="1" | ||
# Tag any CCID device (i.e. Smartcard Reader) as security token | ||
ENV{ID_SMARTCARD_READER}=="1", TAG+="security-device" | ||
|
||
LABEL="fido_id_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# do not edit this file, it will be overwritten on update | ||
|
||
ACTION=="remove", GOTO="camera_end" | ||
|
||
SUBSYSTEM=="video4linux", ENV{ID_BUS}="usb" , \ | ||
IMPORT{builtin}="hwdb 'camera:usb:v$env{ID_VENDOR_ID}p$env{ID_MODEL_ID}:name:$attr{name}:'", \ | ||
GOTO="camera_end" | ||
|
||
LABEL="camera_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# do not edit this file, it will be overwritten on update | ||
|
||
ACTION=="remove", GOTO="memory_end" | ||
SUBSYSTEM!="dmi", GOTO="memory_end" | ||
|
||
IMPORT{program}="dmi_memory_id" | ||
|
||
LABEL="memory_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# do not edit this file, it will be overwritten on update | ||
|
||
ACTION=="remove", GOTO="net_dhcp_end" | ||
SUBSYSTEM!="net", GOTO="net_dhcp_end" | ||
|
||
# Network interfaces requiring DHCPOFFER messages to be broadcast | ||
# must set ID_NET_DHCP_BROADCAST to "1". This property will be | ||
# checked by the networkd DHCP4 client to set the DHCP option | ||
|
||
# s390 ccwgroup interfaces in layer3 mode need broadcast DHCPOFFER | ||
# using the link driver to detect this condition | ||
ENV{ID_NET_DRIVER}=="qeth_l3", ENV{ID_NET_DHCP_BROADCAST}="1" | ||
|
||
LABEL="net_dhcp_end" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters