fix_ut2k4.sh 992 B

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 "applying WebAdmin ut2003.css fix."
  10. echo "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. sleep 0.5
  14. echo "applying WebAdmin CharSet fix."
  15. echo "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. sleep 0.5
  18. echo "applying server name fix."
  19. sleep 0.5
  20. echo "forcing server restart."
  21. sleep 0.5
  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