1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

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>
This commit is contained in:
Tom Hochstein
2016-07-18 09:43:05 -05:00
committed by Richard Purdie
parent 9f7c1a5a99
commit df9f8a89fb
@@ -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