From 32a4e06db5408740e7d8f643adb8d2dffb3abd9e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 14 Feb 2008 21:17:32 +0000 Subject: tslib: Check touchscreen exists before setting TSLIB_TSDEVICE git-svn-id: https://svn.o-hand.com/repos/poky/trunk@3811 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/tslib/tslib/tslib.sh | 6 ++++-- meta/packages/tslib/tslib_1.0.bb | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'meta') diff --git a/meta/packages/tslib/tslib/tslib.sh b/meta/packages/tslib/tslib/tslib.sh index 5221b05b8..7068e8d92 100644 --- a/meta/packages/tslib/tslib/tslib.sh +++ b/meta/packages/tslib/tslib/tslib.sh @@ -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 diff --git a/meta/packages/tslib/tslib_1.0.bb b/meta/packages/tslib/tslib_1.0.bb index 6d219a1a8..ad7536681 100644 --- a/meta/packages/tslib/tslib_1.0.bb +++ b/meta/packages/tslib/tslib_1.0.bb @@ -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 \ -- cgit v1.2.3