chiark / gitweb /
udev: keyboard - also hook into "change" events
authorKay Sievers <kay@vrfy.org>
Mon, 26 May 2014 01:30:21 +0000 (09:30 +0800)
committerKay Sievers <kay@vrfy.org>
Mon, 26 May 2014 01:30:21 +0000 (09:30 +0800)
Re-apply the keymaps when "udevadm trigger" is called. Hooking into
"add" only would just remove all keymap content from the udev database
instead of applying the new config.

rules/60-keyboard.rules

index 4e0f366..22f71e7 100644 (file)
@@ -1,6 +1,6 @@
 # do not edit this file, it will be overwritten on update
 
-ACTION!="add", GOTO="keyboard_end"
+ACTION=="remove", GOTO="keyboard_end"
 KERNEL!="event*", GOTO="keyboard_end"
 ENV{ID_INPUT_KEY}=="", GOTO="keyboard_end"