fix_kf.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. # LinuxGSM fix_kf.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with Killing Floor.
  7. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  8. echo -e "applying WebAdmin ROOst.css fix."
  9. echo -e "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  10. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  11. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  12. fn_sleep_time
  13. echo -e "applying WebAdmin CharSet fix."
  14. echo -e "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. fn_sleep_time
  17. echo -e "applying server name fix."
  18. fn_sleep_time
  19. echo -e "forcing server restart..."
  20. fn_sleep_time
  21. exitbypass=1
  22. command_start.sh
  23. fn_firstcommand_reset
  24. fn_sleep_time_5
  25. exitbypass=1
  26. command_stop.sh
  27. fn_firstcommand_reset
  28. exitbypass=1
  29. command_start.sh
  30. fn_firstcommand_reset
  31. fn_sleep_time_5
  32. exitbypass=1
  33. command_stop.sh
  34. fn_firstcommand_reset