summaryrefslogtreecommitdiff
path: root/gpe-session-scripts/files/zaurus.sh
blob: 073d958d0fef96d5993acf9c3a543a1b38731e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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