#!/bin/sh export XDG_RUNTIME_DIR="/run/user/0" export WAYLAND_DISPLAY="@WAYLAND_DISPLAY@" COMPATIBLE="$(tr '\0' ' ' /dev/null || true)" case "${COMPATIBLE}" in *digi,ccmp15*|*digi,ccmp25*) export WL_EGL_GBM_FENCE=0 ;; esac [ -f /etc/default/weston ] && . /etc/default/weston rm -rf "$XDG_RUNTIME_DIR" mkdir -p "$XDG_RUNTIME_DIR" chmod 0700 "$XDG_RUNTIME_DIR" chown root:root "$XDG_RUNTIME_DIR" rm -rf /tmp/.X11-unix mkdir -p /tmp/.X11-unix chmod 1777 /tmp/.X11-unix rm -f /tmp/weston.log weston \ --backend=drm-backend.so \ --modules=systemd-notify.so \ --idle-time=0 \ --log=/tmp/weston.log \ ${OPTARGS} & while :; do if [ -S "${XDG_RUNTIME_DIR}/${WAYLAND_DISPLAY}" ]; then break fi sleep 0.1 done sleep 0.1 /etc/connectcore-demo-server start # wait for server to be ready until nc -w 1 localhost 9090 /dev/null 2>&1; do sleep 0.1 done /etc/connectcore-demo-example-webkit start # Keep one foreground process alive; the container entrypoint already runs # docker-init, so there is no need to chain a second instance here. exec sleep infinity