#!/bin/bash SAVE_FILE="/root/.openttd/save/autosave/latest.sav" if [ -f "$SAVE_FILE" ]; then echo "Loading savegame: $SAVE_FILE" exec /openttd/source/build/openttd -D -g autosave/latest.sav else echo "No savegame found. Starting new game." exec /openttd/source/build/openttd -D fi