run-life-server (455B)
1 #!/usr/bin/sh 2 cd /opt/sdl2-life || exit 1 3 4 VIDEO=/dev/dri/card0 5 6 # Wait for video card to appear and have correct permission 7 echo "Waiting for $VIDEO" 8 while [ ! -e "$VIDEO" ] || [ ! -w "$VIDEO" ]; do 9 sleep 1 10 ls -l "$VIDEO" 11 done 12 13 echo "Starting sdl2-life" 14 ./sdl2-life -font /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf -height 480 -width 800 -fps 20 -color -colors "#ff0000,#00ff00,#ffff00,#ffffff" -gradient 2 -rotate 270 -server -host 0.0.0.0