fix_bfv.sh 952 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. # LinuxGSM fix_bfv.sh module
  3. # Author: Daniel Gibbs
  4. # Contributors: https://linuxgsm.com/contrib
  5. # Website: https://linuxgsm.com
  6. # Description: Resolves issues with Battlefield: Vietnam.
  7. # shellcheck disable=SC2034 # Used by the module loader.
  8. moduleselfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")"
  9. export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${serverfiles}"
  10. if ldd "${executabledir}/bfv_linded.static" 2>&1 | grep -qE "lib(ncurses|tinfo)\.so\.5 => not found"; then
  11. # shellcheck disable=SC2034 # Used by fn_fix_msg_start_nl and fn_fix_msg_end.
  12. fixname="libncurses5 i386"
  13. fn_fix_msg_start_nl
  14. fn_fetch_file "http://linuxgsm.download/libraries/libncurses5-i386-6.3-2ubuntu0.3.tar.xz" "" "" "" "${tmpdir}" "libncurses5-i386-6.3-2ubuntu0.3.tar.xz" "nochmodx" "norun" "noforce" "ee141cb3a843e4201786b6f188347666"
  15. fn_dl_extract "${tmpdir}" "libncurses5-i386-6.3-2ubuntu0.3.tar.xz" "${serverfiles}"
  16. fn_clear_tmp
  17. fn_fix_msg_end
  18. fi