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