1 2 3 4 5 6 7 8 9 10 11 12
#!/bin/sh if [ -z "`which chkhinge`" ]; then # probably not a clamshell zaurus exit 0 fi chkhinge -e if [ $? = 12 ]; then xrandr -o right fi