fn_install_gslt 620 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. # LGSM fn_install_gslt function
  3. # Author: Daniel Gibbs
  4. # Website: http://gameservermanagers.com
  5. # Version: 091215
  6. echo ""
  7. echo "Game Server Login Token"
  8. echo "============================"
  9. sleep 1
  10. if [ "${gamename}" == "Counter Strike: Global Offensive" ]; then
  11. echo "GSLT is required to run a public ${gamename} server"
  12. else
  13. echo "GSLT is an optional feature when ${gamename} server"
  14. fi
  15. echo "Get more infomation and a token here:"
  16. echo "http://gameservermanagers.com/gslt"
  17. echo ""
  18. echo "Enter token below"
  19. echo -n "TOKEN: "
  20. read token
  21. sed -i -e "s/gslt=\"\"/gslt=\"${token}\"/g" > "${selfname}"
  22. echo ""