#! /bin/bashif["$(whoami)"!="root"]thenecho"Must be ran as root"exit1fiexport UT2004_PATH="/opt/ut2004"# Create CD key file.echoprintf"Enter CD Key [XXXXX-XXXXX-XXXXX-XXXXX]: "read cd_key
echo"$cd_key">"$UT2004_PATH"/System/CDkey
$UT2004_PATH/Scripts/ut2004-update