aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-profile-graphical/recipes-graphics
diff options
context:
space:
mode:
authorStephane Desneux <stephane.desneux@iot.bzh>2019-01-07 18:09:44 +0000
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-02-18 10:41:38 +0000
commit75e9b3104628d5bbf337c279c33bc3b13d47c43f (patch)
treee99bd85eace524a6172e595849b21cddca96ad61 /meta-agl-profile-graphical/recipes-graphics
parent9346eb3797923aa0c4ff914872969c9112e30adb (diff)
weston-ready: increase verbosity
This patch adds some log output to know when weston is ready or when a timeout is reached. Change-Id: I217aa26a0b9d3b46e73dc55bef8dbc3e673c53c4 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
Diffstat (limited to 'meta-agl-profile-graphical/recipes-graphics')
-rw-r--r--meta-agl-profile-graphical/recipes-graphics/wayland/weston-ready/weston-ready7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-agl-profile-graphical/recipes-graphics/wayland/weston-ready/weston-ready b/meta-agl-profile-graphical/recipes-graphics/wayland/weston-ready/weston-ready
index 5a3ff5500..c7cba3043 100644
--- a/meta-agl-profile-graphical/recipes-graphics/wayland/weston-ready/weston-ready
+++ b/meta-agl-profile-graphical/recipes-graphics/wayland/weston-ready/weston-ready
@@ -23,6 +23,8 @@
usage="Usage: weston-ready [-t timeout]"
timeout=0
+function info() { echo "$@" >&2; }
+
if [ $# -eq 2 ]; then
if [ $1 = "-t" ]; then
timeout=$(($2 * 10))
@@ -32,15 +34,20 @@ if [ $# -eq 2 ]; then
fi
fi
+info "using timeout $timeout"
+
time=0
rc=1
while true; do
if [ $time -gt $timeout ]; then
+ info "Timeout reached"
break
elif LayerManagerControl get screens >/dev/null 2>&1; then
+ info "Weston is now ready"
rc=0
break
fi
+ info "waiting..."
if [ $timeout -gt 0 ]; then
usleep 500000
fi