[OE-core] [PATCH v3 3/3] weston-init: Fix weston-start to allow weston args without openvt args

Tom Hochstein tom.hochstein at nxp.com
Mon Jul 18 14:43:06 UTC 2016


The parser didn't properly handle commands of the form
weston-start -- <weston-options>.

Signed-off-by: Tom Hochstein <tom.hochstein at nxp.com>
---
 meta/recipes-graphics/wayland/weston-init/weston-start | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start
index cd64216..e72fbaa 100755
--- a/meta/recipes-graphics/wayland/weston-init/weston-start
+++ b/meta/recipes-graphics/wayland/weston-init/weston-start
@@ -35,13 +35,12 @@ fi
 
 openvt_args="-s"
 while [ -n "$1" ]; do
-	openvt_args="$openvt_args $1"
-	shift
-
 	if [ "$1" = "--" ]; then
 		shift
 		break
 	fi
+	openvt_args="$openvt_args $1"
+	shift
 done
 
 weston_args=$*
-- 
1.9.1




More information about the Openembedded-core mailing list