summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/formfactor/files
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-20 16:44:36 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-21 12:15:30 +0100
commitec102f50704dff85db11a808a10a3ff5bcb76041 (patch)
tree167b2a20b4e79b678552f87a5e0aa58810eb6a2e /meta/recipes-bsp/formfactor/files
parent48619958d53cbec888a0a6806c5e494291e9e227 (diff)
downloadopenembedded-core-contrib-ec102f50704dff85db11a808a10a3ff5bcb76041.tar.gz
formfactor: Clean up errors on machines without framebuffers
If fbset can't find a framebuffer we end up with a mess on the console. We might as well avoid doing this on machines without a framebuffer. (From OE-Core rev: f5c39ea822b440ae4bdd38be94fcf8a2814d2229) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/formfactor/files')
-rwxr-xr-xmeta/recipes-bsp/formfactor/files/config22
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
DISPLAY_ORIENTATION=0
fi
-if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then
- DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'`
-fi
-
-if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then
- DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'`
-fi
-
-if [ -z "$DISPLAY_BPP" ]; then
- DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'`
+if [ -e "/dev/fb" ]; then
+ if [ -z "$DISPLAY_WIDTH_PIXELS" ]; then
+ DISPLAY_WIDTH_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $2 }'`
+ fi
+
+ if [ -z "$DISPLAY_HEIGHT_PIXELS" ]; then
+ DISPLAY_HEIGHT_PIXELS=`/usr/sbin/fbset | grep geometry | awk '{ print $3 }'`
+ fi
+
+ if [ -z "$DISPLAY_BPP" ]; then
+ DISPLAY_BPP=`/usr/sbin/fbset | grep geometry | awk '{ print $6 }'`
+ fi
fi
#