udev: load the required kernel modules
Loading the required kernel modules such as ledtrig-pattern via /etc/modules-load.d may introduce a race condition on some systems such as non-systemd based distros. Load the kernel modules using the builtin 'kmod load' udev command instead.
This commit is contained in:
Vendored
-1
@@ -1,4 +1,3 @@
|
||||
debian/modules-load.d etc/
|
||||
/usr/bin/
|
||||
/usr/libexec/
|
||||
/usr/share/dbus-1/
|
||||
|
||||
Vendored
+2
-2
@@ -7,7 +7,7 @@ ACTION=="remove", GOTO="feedbackd_end"
|
||||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", ENV{ID_PATH}=="platform-vibrator", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"
|
||||
|
||||
# See include/dt-bindings/leds/common.h in the linux kernel
|
||||
SUBSYSTEM=="leds", DEVPATH=="*/*:status", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G feedbackd"
|
||||
SUBSYSTEM=="leds", DEVPATH=="*/*:indicator", ENV{FEEDBACKD_TYPE}="led", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G feedbackd"
|
||||
SUBSYSTEM=="leds", DEVPATH=="*/*:status", ENV{FEEDBACKD_TYPE}="led", RUN{builtin}+="kmod load ledtrig-pattern", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G feedbackd"
|
||||
SUBSYSTEM=="leds", DEVPATH=="*/*:indicator", ENV{FEEDBACKD_TYPE}="led", RUN{builtin}+="kmod load ledtrig-pattern", RUN+="/usr/libexec/fbd-ledctrl -p %S%p -t pattern -G feedbackd"
|
||||
|
||||
LABEL="feedbackd_end"
|
||||
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
ledtrig-pattern
|
||||
Reference in New Issue
Block a user