summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-11-24 18:05:47 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-11-25 04:52:23 +0100
commit50f4469ed7200c74c18620dd2a7a6cd3127890c3 (patch)
tree8df14efd0266dda300ab9c410496e3caad5aa260
parentupdate TODO (diff)
downloadsystemd-50f4469ed7200c74c18620dd2a7a6cd3127890c3.tar.xz
systemd-50f4469ed7200c74c18620dd2a7a6cd3127890c3.zip
rules: don't condition usb-gadget.target target on 'add' action
The dependency should exist continously, like all our similar deps do. Hence drop the "add" conditionalization.
-rw-r--r--rules.d/99-systemd.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/99-systemd.rules.in b/rules.d/99-systemd.rules.in
index 0d68f31d36..9bf02a705f 100644
--- a/rules.d/99-systemd.rules.in
+++ b/rules.d/99-systemd.rules.in
@@ -62,7 +62,7 @@ SUBSYSTEM=="printer", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target", ENV{
SUBSYSTEM=="usb", KERNEL=="lp*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target", ENV{SYSTEMD_USER_WANTS}+="printer.target"
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??:*", TAG+="systemd", ENV{SYSTEMD_WANTS}+="printer.target", ENV{SYSTEMD_USER_WANTS}+="printer.target"
-SUBSYSTEM=="udc", ACTION=="add", TAG+="systemd", ENV{SYSTEMD_WANTS}+="usb-gadget.target"
+SUBSYSTEM=="udc", TAG+="systemd", ENV{SYSTEMD_WANTS}+="usb-gadget.target"
# Apply sysctl variables to network devices (and only to those) as they appear.
ACTION=="add", SUBSYSTEM=="net", KERNEL!="lo", RUN+="{{LIBEXECDIR}}/systemd-sysctl --prefix=/net/ipv4/conf/$name --prefix=/net/ipv4/neigh/$name --prefix=/net/ipv6/conf/$name --prefix=/net/ipv6/neigh/$name"