summarylogtreecommitdiffstats
path: root/ut2004.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ut2004.sh')
-rw-r--r--ut2004.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/ut2004.sh b/ut2004.sh
new file mode 100644
index 000000000000..16aac08f1c45
--- /dev/null
+++ b/ut2004.sh
@@ -0,0 +1,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