fix_ut2k4.sh 970 B

12345678910111213141516171819202122232425262728293031
  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. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. echo -e "applying WebAdmin ut2003.css fix."
  8. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  9. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ut2003.css"
  10. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ut2003.css"
  11. fn_sleep_time
  12. echo -e "applying WebAdmin CharSet fix."
  13. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  14. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
  15. fn_sleep_time
  16. echo -e "applying server name fix."
  17. fn_sleep_time
  18. echo -e "forcing server restart."
  19. fn_sleep_time
  20. exitbypass=1
  21. command_start.sh
  22. sleep 5
  23. exitbypass=1
  24. command_stop.sh
  25. exitbypass=1
  26. command_start.sh
  27. sleep 5
  28. exitbypass=1
  29. command_stop.sh