fix_wurm.sh 990 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. # LinuxGSM fix_wurm.sh function
  3. # Author: Daniel Gibbs
  4. # Website: https://linuxgsm.com
  5. # Description: Resolves various issues with Wurm Unlimited.
  6. functionselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  7. if [ ! -f "${serverfiles}/nativelibs" ]; then
  8. fixname="steamclient.so x86"
  9. fn_fix_msg_start
  10. mkdir -p "${serverfiles}/nativelibs"
  11. if [ -f "${HOME}/.steam/steamcmd/linux32/steamclient.so" ]; then
  12. cp "${HOME}/.steam/steamcmd/linux32/steamclient.so" "${serverfiles}/nativelibs/steamclient.so"
  13. elif [ -f "${steamcmddir}/linux32/steamclient.so" ]; then
  14. cp "${steamcmddir}/linux32/steamclient.so" "${serverfiles}/nativelibs/steamclient.so"
  15. fi
  16. fn_fix_msg_end
  17. fi
  18. # First run requires start with no parms.
  19. # After first run new dirs are created.
  20. if [ ! -d "${serverfiles}/Creative" ]; then
  21. parmsbypass=1
  22. fixbypass=1
  23. exitbypass=1
  24. command_start.sh
  25. fn_firstcommand_reset
  26. sleep 10
  27. exitbypass=1
  28. command_stop.sh
  29. fn_firstcommand_reset
  30. unset parmsbypass
  31. fi