From d5f16a21f8ae6c5e8491c1676cd1f3cf6acf2a04 Mon Sep 17 00:00:00 2001 From: Simon Zeyer Date: Tue, 26 Nov 2024 20:12:01 +0100 Subject: [PATCH] =?UTF-8?q?=C3=84ndern=20init=20Script=20->=20Warten=20auf?= =?UTF-8?q?=20Monitorverbindung=20wenn=20keiner=20verbunden.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index fdc30bd..779cc25 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,12 @@ RUN printf "\ #xrandr --output default --gamma 0:0:0 --mode 1200x1000\n\ #rm -rf /tmp/* \n\ OUTPUT=\`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'\`\n\ +while [ -z "\${OUTPUT}" ] \n\ +do \n\ + echo \"No display connected. Wait 10 Sec\" \n\ + sleep 10 \n\ + OUTPUT=\`xrandr -display :0 -q | sed '/ connected/!d;s/ .*//;q'\`\n\ +done \n\ #xrandr -display :0 --output \$OUTPUT --set \"Broadcast RGB\" \"Full\"\n\ #xsetroot #000000\n\ #GEO="$(fbset -s | awk '$1 == "geometry" { print $2":"$3 }')" \n\