]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
xtscal: Fix the endless loop when starting X
authorZhai Edwin <edwin.zhai@intel.com>
Mon, 27 Sep 2010 13:16:16 +0000 (21:16 +0800)
committerRichard Purdie <rpurdie@linux.intel.com>
Mon, 27 Sep 2010 15:01:49 +0000 (16:01 +0100)
xtscal script in Xsession.d would lead endless loop if /etc/pointercal is
missing, which make the system hang.

This fix adds a counter for loop.

[BUGID #251] got fixed by this.

Signed-off-by: Zhai Edwin <edwin.zhai@intel.com>
meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh

index ee55784548e32321992d3b9c66223dbcf641f024..b8383bf86b3f50c60fbe272153ab0b86cd90ee68 100644 (file)
@@ -3,8 +3,11 @@
 . /etc/formfactor/config
 
 if [ "$HAVE_TOUCHSCREEN" = "1" ]; then
-       while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ]
+       n=1
+       while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] && [ $n -le 5 ]
        do
           /usr/bin/xtscal
+          sleep 1
+          let "n += 1"
        done
 fi