fix_ro.sh 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. command_start.sh
  26. sleep 5
  27. command_stop.sh
  28. command_start.sh
  29. sleep 5
  30. command_stop.sh