mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 13:09:50 +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:
committed by
Richard Purdie
parent
9f7c1a5a99
commit
df9f8a89fb
@@ -5,7 +5,7 @@ export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
|
|||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
$0 <openvt arguments> -- <weston options>
|
$0 [<openvt arguments>] [-- <weston options>]
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -22,11 +22,6 @@ add_openvt_argument() {
|
|||||||
openvt_args="$openvt_args $1"
|
openvt_args="$openvt_args $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
if test $# -lt 2; then
|
|
||||||
usage
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -n "$WAYLAND_DISPLAY" ]; then
|
if [ -n "$WAYLAND_DISPLAY" ]; then
|
||||||
echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
|
echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user