#!/bin/sh
which nvrun && exec nvrun minetest $@
which optirun && exec optirun minetest $@
exec minetest $@