tslib: Check touchscreen exists before setting TSLIB_TSDEVICE
authorRichard Purdie <richard@openedhand.com>
Thu, 14 Feb 2008 21:17:32 +0000 (21:17 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 14 Feb 2008 21:17:32 +0000 (21:17 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3811 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/tslib/tslib/tslib.sh
meta/packages/tslib/tslib_1.0.bb

index 5221b05..7068e8d 100644 (file)
@@ -1,6 +1,8 @@
 #!/bin/sh
 
-TSLIB_TSDEVICE=/dev/input/touchscreen0
+if [ -e /dev/input/touchscreen0 ]; then
+    TSLIB_TSDEVICE=/dev/input/touchscreen0
 
-export TSLIB_TSDEVICE
+    export TSLIB_TSDEVICE
+fi
 
index 6d219a1..ad75366 100644 (file)
@@ -4,7 +4,7 @@ AUTHOR = "Russell King w/ plugins by Chris Larson et. al."
 SECTION = "base"
 LICENSE = "LGPL"
 
-PR = "r10"
+PR = "r11"
 
 SRC_URI = "http://download.berlios.de/tslib/tslib-1.0.tar.bz2 \
            file://fix_version.patch;patch=1 \