]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
weston-init: Fix weston-start to handle 0 or 1 args
authorTom Hochstein <tom.hochstein@nxp.com>
Mon, 18 Jul 2016 14:43:05 +0000 (09:43 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jul 2016 22:46:57 +0000 (23:46 +0100)
The parser incorrectly treated anything less than 2 args as an error.

Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/wayland/weston-init/weston-start

index 3508ae2c3391e2380b4161868ca92f61f4ed0f12..9ef6773b0e8b846cec0eed4d1b192c4a1369a82d 100755 (executable)
@@ -5,7 +5,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
 
 usage() {
     cat <<EOF
-    $0 <openvt arguments> -- <weston options>
+    $0 [<openvt arguments>] [-- <weston options>]
 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