You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
413 B
Bash
22 lines
413 B
Bash
#!/bin/sh
|
|
|
|
# Source debconf library.
|
|
. /usr/share/debconf/confmodule
|
|
|
|
FILES="trg1r.grf trgcr.grf trghr.grf trgir.grf trgtr.grf sample.cat"
|
|
DATADIR=/usr/share/games/openttd/data
|
|
|
|
MISSING="No";
|
|
for FILE in $FILES; do
|
|
# Check if all the files needed are here.
|
|
if [ ! -e $DATADIR/$FILE ]; then
|
|
MISSING="Yes";
|
|
break;
|
|
fi;
|
|
done;
|
|
|
|
if [ $MISSING = "Yes" ]; then
|
|
db_input high openttd/datafiles || true
|
|
db_go
|
|
fi;
|