]> code.ossystems Code Review - openembedded-core.git/commitdiff
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 5221b05b8a8e03867665de97a5425048209ae21c..7068e8d92299ceccf535306b8dec25a12b6809bc 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 6d219a1a8561ee2aca1f95f3029ed269cac0f16d..ad75366812a3340616512f0826bf23d40b0d9a72 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 \