]> code.ossystems Code Review - openembedded-core.git/commitdiff
qtdemo-init: fix bashism
authorChen Qi <Qi.Chen@windriver.com>
Fri, 2 Aug 2013 07:46:49 +0000 (15:46 +0800)
committerSaul Wold <sgw@linux.intel.com>
Tue, 6 Aug 2013 06:59:53 +0000 (23:59 -0700)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init

index 0748fcd94c8ce9b47841a5bb753eb29f899c47d1..3a1f2cb1b2ecb279626fe1728b797f19e3565137 100644 (file)
@@ -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