summaryrefslogtreecommitdiff
path: root/recipes/xserver-common/files/98keymap-fixup
diff options
context:
space:
mode:
authorLukas Gorris <lukas.gorris@gmail.com>2009-03-30 21:20:14 +0200
committerLukas Gorris <lukas.gorris@gmail.com>2009-03-30 21:20:14 +0200
commita93dfebb9e7a34ffba9b1ae5e8e496dfab4c3c43 (patch)
tree6c38a4617c92398269e6603a0509fc3006811368 /recipes/xserver-common/files/98keymap-fixup
parent4255898da29e7e0c521d064afedbc4075b3e8155 (diff)
parentd7fdcef3d8c8b80926d579c2db179b594429cebe (diff)
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/xserver-common/files/98keymap-fixup')
-rwxr-xr-xrecipes/xserver-common/files/98keymap-fixup10
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes/xserver-common/files/98keymap-fixup b/recipes/xserver-common/files/98keymap-fixup
new file mode 100755
index 0000000000..fcc84d9cab
--- /dev/null
+++ b/recipes/xserver-common/files/98keymap-fixup
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# kdrive 1.4 and up have a heisenbug where it may take multiple tries to apply a modmap
+iter=0
+while [ $(xmodmap -pke | awk '{if ($2 == 36) { if ($4 == "Return") { print "good" } else {print "bad" }}}') = "bad" ] ; do
+ xmodmap - </etc/X11/default.xmodmap
+ let iter=iter+1
+done
+
+echo "modmap applied after $iter additional tries"