diff options
Diffstat (limited to 'gpe-session-scripts/files')
-rw-r--r-- | gpe-session-scripts/files/zaurus.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gpe-session-scripts/files/zaurus.sh b/gpe-session-scripts/files/zaurus.sh index e69de29bb2..073d958d0f 100644 --- 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 + |