| if [ -e /etc/formfactor/machconfig ]; then |
| . /etc/formfactor/machconfig |
| if [ -z "$HAVE_TOUCHSCREEN" ]; then |
| if [ -z "$HAVE_KEYBOARD" ]; then |
| if [ -z "$HAVE_KEYBOARD_PORTRAIT" ]; then |
| if [ -z "$HAVE_KEYBOARD_LANDSCAPE" ]; then |
| HAVE_KEYBOARD_LANDSCAPE=0 |
| if [ -z "$DISPLAY_CAN_ROTATE" ]; then |
| if [ -z "$DISPLAY_ORIENTATION" ]; then |
| if [ -e "/dev/fb" ]; then |
| if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then |
| DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` |
| if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then |
| DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` |
| if [ -z "$DISPLAY_BPP" ]; then |
| DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` |
| # No way to guess these or have any defaults |