mirror of
https://git.yoctoproject.org/poky
synced 2026-02-11 19:23:03 +01:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
239a368d57
commit
b3ef7f59e2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user