git.openpandora.org
/
openembedded.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54f72f2
)
add shepherd keymap support
author
Phil Blundell
<philb@gnu.org>
Sat, 4 Dec 2004 22:48:10 +0000
(22:48 +0000)
committer
Phil Blundell
<philb@gnu.org>
Sat, 4 Dec 2004 22:48:10 +0000
(22:48 +0000)
BKrev:
41b23eaad3f60
-UddA6ByKPngEoT4A
gpe-session-scripts/files/zaurus.sh
patch
|
blob
|
history
diff --git
a/gpe-session-scripts/files/zaurus.sh
b/gpe-session-scripts/files/zaurus.sh
index
e69de29
..
073d958
100644
(file)
--- a/
gpe-session-scripts/files/zaurus.sh
+++ b/
gpe-session-scripts/files/zaurus.sh
@@
-0,0
+1,20
@@
+#!/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
+ ;;
+esac
+
+if [ -z "`which chkhinge`" ]; then
+ # probably not a clamshell zaurus
+ exit 0
+fi
+
+chkhinge -e
+if [ $? = 12 ]; then
+ xrandr -o right
+fi
+