summaryrefslogtreecommitdiff
path: root/includes/autoinstall-includes.sh
diff options
context:
space:
mode:
Diffstat (limited to 'includes/autoinstall-includes.sh')
-rw-r--r--includes/autoinstall-includes.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/autoinstall-includes.sh b/includes/autoinstall-includes.sh
index 1e9c95d..0cd3754 100644
--- a/includes/autoinstall-includes.sh
+++ b/includes/autoinstall-includes.sh
@@ -40,7 +40,7 @@ function query
function recommendcfg
{
- # usage: recommendcfg [numofcds]
+ # usage: recommendcfg [numofcds] [startCd]
if [ "$1" ]; then
NUMOFCDS="$1"
@@ -48,23 +48,29 @@ function recommendcfg
NUMOFCDS=1
fi
+ if [ "$2" ]; then
+ STARTCD="$2"
+ else
+ STARTCD=1
+ fi
+
echo
echo "To play the game with GemRB, you will need to add the following"
echo "lines to your GemRB.cfg file:"
echo
LINE="GamePath=$TARGETDIR"; echo $LINE
if [ $FULLINSTALL -eq 1 ]; then
- for CDNUMBER in $(seq $NUMOFCDS); do
+ for CDNUMBER in $(seq $startCd $(($NUMOFCDS+$startCd-1))); do
if [ -d "${TARGETDIR}/cd${CDNUMBER}" ]; then
LINE="CD${CDNUMBER}=${TARGETDIR}/cd${CDNUMBER}"
else
- LINE="CD$CDNUMBER=$TARGETDIR"
+ LINE="CD${CDNUMBER}=${TARGETDIR}"
fi
echo $LINE
done
echo "GameOnCD=0"
else
- for CDNUMBER in $(seq $NUMOFCDS); do
+ for CDNUMBER in $(seq $startCd $(($NUMOFCDS+$startCd-1))); do
LINE="CD$CDNUMBER=$CDMOUNT/cd$CDNUMBER"
echo $LINE
done