diff options
Diffstat (limited to 'meta/recipes-bsp/formfactor/files/config')
-rwxr-xr-x | meta/recipes-bsp/formfactor/files/config | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/meta/recipes-bsp/formfactor/files/config b/meta/recipes-bsp/formfactor/files/config index a3f762a0f1..41066def97 100755 --- a/meta/recipes-bsp/formfactor/files/config +++ b/meta/recipes-bsp/formfactor/files/config | |||
@@ -28,16 +28,18 @@ if [ -z "$DISPLAY_ORIENTATION" ]; then | |||
28 | DISPLAY_ORIENTATION=0 | 28 | DISPLAY_ORIENTATION=0 |
29 | fi | 29 | fi |
30 | 30 | ||
31 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then | 31 | if [ -e "/dev/fb" ]; then |
32 | DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` | 32 | if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then |
33 | fi | 33 | DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'` |
34 | 34 | fi | |
35 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then | 35 | |
36 | DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` | 36 | if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then |
37 | fi | 37 | DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'` |
38 | 38 | fi | |
39 | if [ -z "$DISPLAY_BPP" ]; then | 39 | |
40 | DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` | 40 | if [ -z "$DISPLAY_BPP" ]; then |
41 | DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'` | ||
42 | fi | ||
41 | fi | 43 | fi |
42 | 44 | ||
43 | # | 45 | # |