minecraft-pi-reborn/debian/client/virgl/usr/lib/minecraft-pi/run.sh

16 lines
212 B
Bash
Raw Normal View History

2020-10-16 19:39:04 +00:00
#!/bin/sh
set -e
# Start VirGL
2020-11-22 22:48:18 +00:00
virgl_test_server > /tmp/virgl.log 2>&1 &
2020-10-16 19:39:04 +00:00
VIRGL_PID="$!"
# Launch Minecraft
2020-10-16 22:23:39 +00:00
${DOCKER_COMPOSE} run --rm minecraft-pi || :
2020-10-16 19:39:04 +00:00
RET="$?"
# Kill VirGL
kill "${VIRGL_PID}"
exit "${RET}"