mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-08-08 00:42:16 -04:00
emerg-shutdown: fix the hang-on-shutdown bug, add autodetection of new keyboards, shutdown key configuration, and instant shutdown option
This commit is contained in:
parent
a1d1c56033
commit
e42078e90d
5 changed files with 153 additions and 20 deletions
9
usr/lib/udev/rules.d/95-emerg-shutdown.rules
Normal file
9
usr/lib/udev/rules.d/95-emerg-shutdown.rules
Normal file
|
@ -0,0 +1,9 @@
|
|||
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"
|
Loading…
Add table
Add a link
Reference in a new issue