fix_ro.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. # LinuxGSM fix_ro.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: http://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves various issues with Red Orchestra.
  7. functionselfname="$(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 Steam AppID fix."
  18. sed -i 's/1210/1200/g' "${systemdir}/steam_appid.txt"
  19. fn_sleep_time
  20. echo -e "applying server name fix."
  21. fn_sleep_time
  22. echo -e "forcing server restart..."
  23. fn_sleep_time
  24. exitbypass=1
  25. command_start.sh
  26. fn_firstcommand_reset
  27. sleep 5
  28. exitbypass=1
  29. command_stop.sh
  30. fn_firstcommand_reset
  31. exitbypass=1
  32. command_start.sh
  33. fn_firstcommand_reset
  34. sleep 5
  35. exitbypass=1
  36. command_stop.sh
  37. fn_firstcommand_reset