udev: add logging and polish HID script
This commit is contained in:
parent
62486926f6
commit
85f7adc36e
@ -1,3 +1,3 @@
|
||||
#!/bin/sh
|
||||
echo 'SUBSYSTEM=="usb", DRIVER=="usbhid", RUN+="/usr/bin/loginctl lock-sessions"' | sudo tee /etc/udev/rules.d/00-usbhid-lock-screen.rules
|
||||
echo 'ACTION=="add", SUBSYSTEM=="usb", DRIVER=="usbhid", RUN+="/usr/bin/loginctl lock-sessions", RUN+="/usr/bin/logger New USB HID device found, locking sessions"' | sudo tee /etc/udev/rules.d/00-usbhid-lock-screen.rules >> /dev/null
|
||||
sudo systemctl reload udev
|
||||
|
Loading…
Reference in New Issue
Block a user