summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland
diff options
context:
space:
mode:
authorTom Hochstein <tom.hochstein@nxp.com>2016-07-18 09:43:05 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-26 08:56:26 +0100
commitdf9f8a89fb05769c9c1968fbdbc5768086711d07 (patch)
tree898a4ffaf056f98a601d683c752db208a6cf2522 /meta/recipes-graphics/wayland
parent9f7c1a5a99651154019f48baa0e75cdb217bd5cb (diff)
downloadpoky-df9f8a89fb05769c9c1968fbdbc5768086711d07.tar.gz
weston-init: Fix weston-start to handle 0 or 1 args
The parser incorrectly treated anything less than 2 args as an error. (From OE-Core rev: 24d155d2d9be402a04fbd68b6a4ccf990deb9ce6) 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>
Diffstat (limited to 'meta/recipes-graphics/wayland')
-rwxr-xr-xmeta/recipes-graphics/wayland/weston-init/weston-start7
1 files changed, 1 insertions, 6 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start
index 3508ae2c33..9ef6773b0e 100755
--- a/meta/recipes-graphics/wayland/weston-init/weston-start
+++ b/meta/recipes-graphics/wayland/weston-init/weston-start
@@ -5,7 +5,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
5 5
6usage() { 6usage() {
7 cat <<EOF 7 cat <<EOF
8 $0 <openvt arguments> -- <weston options> 8 $0 [<openvt arguments>] [-- <weston options>]
9EOF 9EOF
10} 10}
11 11
@@ -22,11 +22,6 @@ add_openvt_argument() {
22 openvt_args="$openvt_args $1" 22 openvt_args="$openvt_args $1"
23} 23}
24 24
25if test $# -lt 2; then
26 usage
27 exit 1
28fi
29
30if [ -n "$WAYLAND_DISPLAY" ]; then 25if [ -n "$WAYLAND_DISPLAY" ]; then
31 echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet." 26 echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
32 exit 1 27 exit 1