* This is normally exported as part of the /etc/profile.d/tslib.sh
  script but when we run this as an init script we need to export
  this environment variable in order for tslib to properly configure
  the touchscreen.

Signed-off-by: Chase Maupin <[email protected]>
---
 .../recipes-graphics/tslib/ts-calibrate-init/init  |    3 ++-
 .../tslib/ts-calibrate-init_1.0.bb                 |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init/init 
b/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init/init
index 26ea581..5d5c0aa 100644
--- a/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init/init
+++ b/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init/init
@@ -11,10 +11,11 @@
 # GNU General Public License for more details.
 
 tsfile=/etc/pointercal
+export TSLIB_TSDEVICE=/dev/input/touchscreen0
 
 # First let's check if we even see a touchscreen device node.  If not
 # then bail out.
-if [ ! -e /dev/input/touchscreen0 ]
+if [ ! -e $TSLIB_TSDEVICE ]
 then
     exit
 fi
diff --git a/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb 
b/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb
index 98588d3..dde5c42 100644
--- a/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb
+++ b/meta-arago-extras/recipes-graphics/tslib/ts-calibrate-init_1.0.bb
@@ -6,7 +6,7 @@ RDEPENDS_${PN} += "tslib"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = 
"file://init;beginline=2;endline=11;md5=4b2e3b15f01cf63d2cb7988afdcc6c60"
 
-PR = "r1"
+PR = "r2"
 
 S = "${WORKDIR}"
 
-- 
1.7.9.5

_______________________________________________
meta-arago mailing list
[email protected]
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to