openttd-jgr/start.sh

11 lines
270 B
Bash
Raw Normal View History

2025-06-02 23:37:27 +00:00
#!/bin/sh
2025-06-02 11:11:05 +00:00
SAVE_FILE="/root/.openttd/save/autosave/latest.sav"
if [ -f "$SAVE_FILE" ]; then
echo "Loading savegame: $SAVE_FILE"
2025-06-02 23:37:27 +00:00
exec /openttd/openttd -D -g autosave/latest.sav
2025-06-02 11:11:05 +00:00
else
echo "No savegame found. Starting new game."
2025-06-02 23:37:27 +00:00
exec /openttd/openttd -D
2025-06-02 11:11:05 +00:00
fi