blob: be8900870a164e376f92eddbfcde087210f70a7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/bash
gogdir="/opt/gog/dragonsphere"
homedir="$HOME/.gog/dragonsphere"
mkdir -p "$homedir"/{game,config/data/DRAGON}
if [[ ! -e "$homedir/config/dosboxDragonsphere.conf" ]]; then
cp "$gogdir/dosboxDragonsphere.conf" "$homedir/config/dosboxDragonsphere.conf"
fi
unionfs "$homedir/config=RW:$gogdir=RO" "$homedir/game"
"$homedir"/game/start.sh
fusermount -u "$homedir/game"
|