mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-29 02:22:09 +08:00
0939b25bc4
maprenderer to ci old-commit-hash: 5d668701cb69c1e3d170109a8e788a2acbacebd3
15 lines
324 B
Bash
Executable File
15 lines
324 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Sets up a virtual display for running map renderer and simulator without an X11 display
|
|
|
|
DISP_ID=99
|
|
export DISPLAY=:$DISP_ID
|
|
|
|
sudo Xvfb $DISPLAY -screen 0 2160x1080x24 &
|
|
|
|
# check for x11 socket for the specified display ID
|
|
while [ ! -S /tmp/.X11-unix/X$DISP_ID ]
|
|
do
|
|
echo "Waiting for Xvfb..."
|
|
sleep 1
|
|
done |