summaryrefslogtreecommitdiff
path: root/packages/gpe-session-scripts/files/keymap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gpe-session-scripts/files/keymap.sh')
-rw-r--r--packages/gpe-session-scripts/files/keymap.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/packages/gpe-session-scripts/files/keymap.sh b/packages/gpe-session-scripts/files/keymap.sh
index e69de29bb2..3f2910b439 100644
--- a/packages/gpe-session-scripts/files/keymap.sh
+++ b/packages/gpe-session-scripts/files/keymap.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+MACHINE=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo`
+
+case $MACHINE in
+ "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi")
+ xmodmap - < /etc/X11/shepherd.xmodmap
+ ;;
+ "Sharp-Collie"
+ xmodmap - < /etc/X11/collie.xmodmap
+ ;;
+ "Simpad")
+ xmodmap - < /etc/X11/simpad.xmodmap
+ ;;
+esac
+