fix_kf.sh 890 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # LGSM fix_kf.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://gameservermanagers.com
  5. # Description: Resolves various issues with Killing Floor.
  6. local modulename="Fix"
  7. local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
  8. echo "Applying WebAdmin ROOst.css fix."
  9. echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  10. sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ROOst.css"
  11. sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ROOst.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. echo "applying server name fix."
  18. sleep 1
  19. echo "forcing server restart..."
  20. sleep 1
  21. command_start.sh
  22. sleep 5
  23. command_stop.sh
  24. command_start.sh
  25. sleep 5
  26. command_stop.sh