fn_ut2k4fix 844 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. # LGSM fn_ut2k4fix function
  3. # Author: Daniel Gibbs
  4. # Website: http://danielgibbs.co.uk
  5. # Version: 011214
  6. echo "Applying UT2K4 Server Fixes"
  7. echo "================================="
  8. echo "Applying WebAdmin ut2003.css fix!"
  9. echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  10. sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"
  11. sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ut2003.css"
  12. sleep 1
  13. echo "Applying WebAdmin CharSet fix!"
  14. echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1"
  15. sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int"
  16. sleep 1
  17. sleep 1
  18. echo "Forcing server to start to get ports/server name to display correctly"
  19. sleep 1
  20. cd "${rootdir}"
  21. ${selfname} start
  22. sleep 5
  23. ${selfname} restart
  24. sleep 5
  25. ${selfname} stop