mirror of
https://github.com/troglobit/finit.git
synced 2026-10-14 10:19:36 +00:00
Add 27 stock rules installed to /lib/udev/rules.d/. Rules invoking /lib/udev/<helper> fall back to keventd builtins (path_id, usb_id, blkid, hwdb, kmod, net_id, input_id) when the helper binary is absent; user-supplied helpers in /lib/udev/ still take precedence. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
23 lines
676 B
Plaintext
23 lines
676 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Derived from eudev 3.2.14 rules/60-autosuspend.rules
|
|
# Modifications by the Finit project: none
|
|
#
|
|
# 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"
|