fix_ut2k4.sh 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. #!/bin/bash
  2. # LinuxGSM fix_ut2k4.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Unreal Tournament 2004.
  6. local commandname="FIX"
  7. local commandaction="Fix"
  8. local function_selfname=$(basename "$(readlink -f "${BASH_SOURCE[0]}")")
  9. echo -e "applying WebAdmin ut2003.css fix."
  10. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  11. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ut2003.css"
  12. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ut2003.css"
  13. fn_sleep_time
  14. echo -e "applying WebAdmin CharSet fix."
  15. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  16. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
  17. fn_sleep_time
  18. echo -e "applying server name fix."
  19. fn_sleep_time
  20. echo -e "forcing server restart."
  21. fn_sleep_time
  22. exitbypass=1
  23. command_start.sh
  24. sleep 5
  25. exitbypass=1
  26. command_stop.sh
  27. exitbypass=1
  28. command_start.sh
  29. sleep 5
  30. exitbypass=1
  31. command_stop.sh