weston-init: Fix weston-start to allow weston args without openvt args

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

(From OE-Core rev: 84dc6a5b277b977488a5dda39feeff3482dfafe3)

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tom Hochstein 2016-07-18 09:43:06 -05:00 committed by Richard Purdie
parent c406e9acd7
commit 9f7c1a5a99
1 changed files with 2 additions and 3 deletions

View File

@ -39,13 +39,12 @@ fi
openvt_args=""
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=$*