mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-07 00:14:14 -04:00
9 lines
503 B
Text
9 lines
503 B
Text
SUBSYSTEM!="input", GOTO="end"
|
|
|
|
# new keyboard or mouse attached or removed, restart emerg-shutdown
|
|
KERNEL=="event*", ACTION=="add", ENV{ID_INPUT_KEYBOARD}=="1", RUN+="/usr/bin/systemctl restart emerg-shutdown.service"
|
|
KERNEL=="event*", ACTION=="add", ENV{ID_INPUT_KEYBOARD}=="1", GOTO="end"
|
|
KERNEL=="event*", ACTION=="remove", ENV{ID_INPUT_KEYBOARD}=="1", RUN+="/usr/bin/systemctl restart emerg-shutdown.service"
|
|
KERNEL=="event*", ACTION=="remove", ENV{ID_INPUT_KEYBOARD}=="1", GOTO="end"
|
|
|
|
LABEL="end"
|