1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

qtdemo-init: fix bashism

(From OE-Core rev: 4758e71de8589bc85d317ee6abb187d563771633)

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Chen Qi
2013-08-02 15:46:49 +08:00
committed by Richard Purdie
parent d55d458734
commit 3d6ffb7640
@@ -12,13 +12,13 @@ case "$1" in
start)
echo "Starting qtdemo"
if [ -f /etc/profile.d/tslib.sh ]; then
source /etc/profile.d/tslib.sh
. /etc/profile.d/tslib.sh
fi
if [ -e "$TSLIB_TSDEVICE" ]; then
if [ ! -f /etc/pointercal ]; then
/usr/bin/ts_calibrate
fi
if [ "$QTDEMO" == qtdemo ]; then
if [ "$QTDEMO" = qtdemo ]; then
Xorg &
export DISPLAY=:0
$QTDEMO &
@@ -26,7 +26,7 @@ case "$1" in
QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE $QTDEMO &
fi
else
if [ "$QTDEMO" == qtdemo ]; then
if [ "$QTDEMO" = qtdemo ]; then
Xorg &
export DISPLAY=:0
fi
@@ -35,7 +35,7 @@ case "$1" in
;;
stop)
echo "Stopping qtdemo"
if [ "$QTDEMO" == qtdemo ]; then
if [ "$QTDEMO" = qtdemo ]; then
killall Xorg
killall qtdemo
else