From bffd43bae2ec295fd11017316e113ad400fa1234 Mon Sep 17 00:00:00 2001
From: UltimateByte <robin.labadie@gmail.com>
Date: Sat, 19 Nov 2016 22:37:51 +0100
Subject: [PATCH] Create fix_rust.sh

---
 lgsm/functions/fix_rust.sh | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 lgsm/functions/fix_rust.sh

diff --git a/lgsm/functions/fix_rust.sh b/lgsm/functions/fix_rust.sh
new file mode 100644
index 000000000..fce1640bb
--- /dev/null
+++ b/lgsm/functions/fix_rust.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# LGSM fix_rust.sh function
+# Author: Daniel Gibbs
+# Website: https://gameservermanagers.com
+# Description: Resolves startup issue with Rust
+
+local commandname="FIX"
+local commandaction="Fix"
+
+# Fixes: ./srcds_linux: error while loading shared libraries: libtier0.so: cannot open shared object file: No such file or directory.
+export LD_LIBRARY_PATH="${systemdir}/RustDedicated_Data/Plugins/x86_64"