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
1 changed files with 4 additions and 4 deletions

View File

@ -12,13 +12,13 @@ case "$1" in
start) start)
echo "Starting qtdemo" echo "Starting qtdemo"
if [ -f /etc/profile.d/tslib.sh ]; then if [ -f /etc/profile.d/tslib.sh ]; then
source /etc/profile.d/tslib.sh . /etc/profile.d/tslib.sh
fi fi
if [ -e "$TSLIB_TSDEVICE" ]; then if [ -e "$TSLIB_TSDEVICE" ]; then
if [ ! -f /etc/pointercal ]; then if [ ! -f /etc/pointercal ]; then
/usr/bin/ts_calibrate /usr/bin/ts_calibrate
fi fi
if [ "$QTDEMO" == qtdemo ]; then if [ "$QTDEMO" = qtdemo ]; then
Xorg & Xorg &
export DISPLAY=:0 export DISPLAY=:0
$QTDEMO & $QTDEMO &
@ -26,7 +26,7 @@ case "$1" in
QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE $QTDEMO & QWS_MOUSE_PROTO=tslib:$TSLIB_TSDEVICE $QTDEMO &
fi fi
else else
if [ "$QTDEMO" == qtdemo ]; then if [ "$QTDEMO" = qtdemo ]; then
Xorg & Xorg &
export DISPLAY=:0 export DISPLAY=:0
fi fi
@ -35,7 +35,7 @@ case "$1" in
;; ;;
stop) stop)
echo "Stopping qtdemo" echo "Stopping qtdemo"
if [ "$QTDEMO" == qtdemo ]; then if [ "$QTDEMO" = qtdemo ]; then
killall Xorg killall Xorg
killall qtdemo killall qtdemo
else else