install_fix_steam.sh 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/bin/bash
  2. # LGSM install_fix_steam.sh function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. lgsm_version="271215"
  6. fn_steamclientfix(){
  7. echo ""
  8. echo "Applying steamclient.so fix"
  9. echo "================================="
  10. sleep 1
  11. mkdir -pv "${HOME}/.steam/sdk32"
  12. cp -v "${rootdir}/steamcmd/linux32/steamclient.so" "${HOME}/.steam/sdk32/steamclient.so"
  13. sleep 1
  14. }
  15. # Server specific
  16. fn_libsteamfix(){
  17. echo ""
  18. echo "Applying libsteam.so and steamclient.so fixes"
  19. echo "================================="
  20. sleep 1
  21. if [ "${gamename}" == "Garry's Mod" ]; then
  22. mkdir -pv "${HOME}/.steam/sdk32"
  23. cp -v "${filesdir}/bin/libsteam.so" "${HOME}/.steam/sdk32/libsteam.so"
  24. elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
  25. mkdir -pv "${HOME}/.steam/bin32"
  26. cp -v "${filesdir}/Bin/libsteam.so" "${HOME}/.steam/bin32/libsteam.so"
  27. elif [ "${gamename}" == "Hurtworld" ]; then
  28. cp -v "${rootdir}/steamcmd/linux32/steamclient.so" "${filesdir}/Hurtworld_Data/Plugins/x86/steamclient.so"
  29. cp -v "${rootdir}/steamcmd/linux32/steamclient.so" "${filesdir}/Hurtworld_Data/Plugins/x86_64/steamclient.so"
  30. fi
  31. sleep 1
  32. }
  33. fn_steamclientfix
  34. if [ "${gamename}" == "Garry's Mod" ]||[ "${gamename}" == "Serious Sam 3: BFE" ]||[ "${gamename}" == "Hurtworld" ]; then
  35. fn_libsteamfix
  36. fi