1 2 3 4 5 6 7 8
#!/bin/bash gogdir="/opt/gog/beneath-a-steel-sky" homedir="$HOME/.gog/beneath-a-steel-sky" mkdir -p "$homedir"/{game,config/data} unionfs -o cow,relaxed_permissions "$homedir/config=RW:$gogdir=RO" "$homedir/game" scummvm -c "$homedir/game/beneath.ini" fusermount -u "$homedir/game"