Added no auto pause feature

This commit is contained in:
Christophe Vandekerchove
2016-03-27 19:10:33 +02:00
parent ba9faac10e
commit 39c27944be
2 changed files with 16 additions and 1 deletions

View File

@ -26,11 +26,17 @@ if [ "$FACTORIO_DISSALOW_COMMANDS" == false ]; then
else
disallow_commands="--disallow-commands"
fi
if [ "$FACTORIO_NO_AUTO_PAUSE" == true ]; then
no_auto_pause="--no-auto-pause"
else
no_auto_pause=""
fi"
echo "###"
echo "# Launching Game"
echo "###"
exec /opt/factorio/bin/x64/factorio \
$disallow_commands \
$no-auto-pause \
--autosave-interval ${FACTORIO_AUTOSAVE_INTERVAL} \
--autosave-slots ${FACTORIO_AUTOSAVE_SLOTS} \
--start-server \