mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
rules: call modprobe on all events but "remove"
This commit is contained in:
parent
816e6bf0fb
commit
06ba47d833
@ -112,6 +112,3 @@ SUBSYSTEM=="rtc", DRIVERS=="rtc_cmos", SYMLINK+="rtc"
|
|||||||
KERNEL=="mmtimer", MODE="0644"
|
KERNEL=="mmtimer", MODE="0644"
|
||||||
KERNEL=="rflash[0-9]*", MODE="0400"
|
KERNEL=="rflash[0-9]*", MODE="0400"
|
||||||
KERNEL=="rrom[0-9]*", MODE="0400"
|
KERNEL=="rrom[0-9]*", MODE="0400"
|
||||||
|
|
||||||
# do not delete static device nodes
|
|
||||||
ACTION=="remove", NAME=="", TEST=="/lib/udev/devices/%k", OPTIONS+="ignore_remove"
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# do not edit this file, it will be overwritten on update
|
# do not edit this file, it will be overwritten on update
|
||||||
|
|
||||||
ACTION!="add", GOTO="drivers_end"
|
ACTION=="remove", GOTO="drivers_end"
|
||||||
|
|
||||||
DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}"
|
DRIVER!="?*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe -b $env{MODALIAS}"
|
||||||
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe -b tifm_sd"
|
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe -b tifm_sd"
|
||||||
|
Loading…
Reference in New Issue
Block a user