aboutsummarylogtreecommitdiffstats
path: root/ut2004-install.sh
blob: 04a7e04d5fc43e71bba7cdc054fb148ae27afe2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#! /bin/bash

if [ "$(whoami)" != "root" ]
then
    echo "Must be ran as root"
    exit 1
fi

export UT2004_PATH="/opt/ut2004"

# Create CD key file.
echo
printf "Enter CD Key [XXXXX-XXXXX-XXXXX-XXXXX]: "
read cd_key

echo "$cd_key" > "$UT2004_PATH"/System/CDkey

$UT2004_PATH/Scripts/ut2004-update