summarylogtreecommitdiffstats
path: root/ut2004.sh
blob: 16aac08f1c45dd696444014850ff1206f4d2e4a3 (plain)
1
2
3
4
5
6
7
8
9
10
#! /bin/bash

if [ ! -d "$HOME"/.ut2004 ] ; then
   mkdir -p "$HOME"/.ut2004/System
   cp /opt/ut2004/__support/app/System/* "$HOME"/.ut2004/System/
   grep -FB1 CDKey /opt/ut2004/goggame-1207658691.script | grep -Po '"valueData": "\K[A-Z0-9-]*(?=",)' > "$HOME"/.ut2004/System/CDkey
   chmod 600 "$HOME"/.ut2004/System/CDkey
fi
cd /opt/ut2004/System
./ut2004-bin