fix_ro.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/bash
  2. # LinuxGSM fix_ro.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Red Orchestra.
  6. local commandname="FIX"
  7. local commandaction="Fix"
  8. local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  9. echo "Applying WebAdmin ROOst.css fix."
  10. echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13"
  11. sed -i 's/none}/none;/g' "${serverfiles}/Web/ServerAdmin/ROOst.css"
  12. sed -i 's/underline}/underline;/g' "${serverfiles}/Web/ServerAdmin/ROOst.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 Steam AppID fix."
  19. sed -i 's/1210/1200/g' "${systemdir}/steam_appid.txt"
  20. sleep 0.5
  21. echo "applying server name fix."
  22. sleep 0.5
  23. echo "forcing server restart..."
  24. sleep 0.5
  25. exitbypass=1
  26. command_start.sh
  27. sleep 5
  28. exitbypass=1
  29. command_stop.sh
  30. exitbypass=1
  31. command_start.sh
  32. sleep 5
  33. exitbypass=1
  34. command_stop.sh