From 24d155d2d9be402a04fbd68b6a4ccf990deb9ce6 Mon Sep 17 00:00:00 2001 From: Tom Hochstein Date: Mon, 18 Jul 2016 09:43:05 -0500 Subject: weston-init: Fix weston-start to handle 0 or 1 args The parser incorrectly treated anything less than 2 args as an error. Signed-off-by: Tom Hochstein Signed-off-by: Ross Burton --- meta/recipes-graphics/wayland/weston-init/weston-start | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'meta/recipes-graphics') 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" usage() { cat < -- + $0 [] [-- ] EOF } @@ -22,11 +22,6 @@ add_openvt_argument() { openvt_args="$openvt_args $1" } -if test $# -lt 2; then - usage - exit 1 -fi - if [ -n "$WAYLAND_DISPLAY" ]; then echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet." exit 1 -- cgit 1.2.3-korg