Patchwork [3/3] qt-demo-init: fix init script

login
register
mail settings
Submitter lumag
Date Sept. 3, 2011, 6:22 p.m.
Message ID <1315074165-20137-3-git-send-email-dbaryshkov@gmail.com>
Download mbox | patch
Permalink /patch/10941/
State New, archived
Headers show

Comments

lumag - Sept. 3, 2011, 6:22 p.m.
qt-demo-init initscript lacks some quotes, which makes it bave not fulle
correct. Fix that.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
---
 meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init |    8 ++++----
 meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb      |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
Richard Purdie - Sept. 5, 2011, 7:38 p.m.
On Sat, 2011-09-03 at 22:22 +0400, Dmitry Eremin-Solenikov wrote:
> qt-demo-init initscript lacks some quotes, which makes it bave not fulle
> correct. Fix that.
> 
> Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
> ---
>  meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init |    8 ++++----
>  meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb      |    2 +-
>  2 files changed, 5 insertions(+), 5 deletions(-)

Merged to master, thanks.

Richard

Patch

diff --git a/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init b/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init
index affb958..0748fcd 100644
--- a/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init
+++ b/meta/recipes-qt/qt-demo/qt-demo-init/qtdemo-init
@@ -14,11 +14,11 @@  case "$1" in
 	if [ -f /etc/profile.d/tslib.sh ]; then
 		source /etc/profile.d/tslib.sh
 	fi
-	if [ -e $TSLIB_TSDEVICE ]; then
+	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
diff --git a/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb b/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb
index 8d0dd19..0f089ad 100644
--- a/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb
+++ b/meta/recipes-qt/qt-demo/qt-demo-init_0.1.bb
@@ -1,7 +1,7 @@ 
 DESCRIPTION = "Init script for qtdemo"
 LICENSE = "MIT"
 SRC_URI = "file://qtdemo-init"
-PR = "r2"
+PR = "r3"
 
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"