diff options
author | Zhai Edwin <edwin.zhai@intel.com> | 2010-09-27 21:16:16 +0800 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-27 16:01:49 +0100 |
commit | b3ef7f59e2c7e7ea232b4a22bfaf423cd747c2a7 (patch) | |
tree | 73440f2cbb0069ac0fa331f9cc73294350dbef05 /meta/recipes-graphics | |
parent | 239a368d5715d8f5b7733f9400339c2350c49369 (diff) | |
download | poky-b3ef7f59e2c7e7ea232b4a22bfaf423cd747c2a7.tar.gz |
xtscal: Fix the endless loop when starting X
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>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh b/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh index ee55784548..b8383bf86b 100644 --- a/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh +++ b/meta/recipes-graphics/xtscal/xtscal/30xTs_Calibrate.sh | |||
@@ -3,8 +3,11 @@ | |||
3 | . /etc/formfactor/config | 3 | . /etc/formfactor/config |
4 | 4 | ||
5 | if [ "$HAVE_TOUCHSCREEN" = "1" ]; then | 5 | if [ "$HAVE_TOUCHSCREEN" = "1" ]; then |
6 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] | 6 | n=1 |
7 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] && [ $n -le 5 ] | ||
7 | do | 8 | do |
8 | /usr/bin/xtscal | 9 | /usr/bin/xtscal |
10 | sleep 1 | ||
11 | let "n += 1" | ||
9 | done | 12 | done |
10 | fi | 13 | fi |