diff options
Diffstat (limited to 'audio/teamspeak_client/files/TeamSpeak.in')
-rw-r--r-- | audio/teamspeak_client/files/TeamSpeak.in | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/audio/teamspeak_client/files/TeamSpeak.in b/audio/teamspeak_client/files/TeamSpeak.in new file mode 100644 index 000000000000..72db77c9b8c8 --- /dev/null +++ b/audio/teamspeak_client/files/TeamSpeak.in @@ -0,0 +1,22 @@ +#!/bin/sh +# +# This startup script will set the correct library path +# and then startup the teamspeak binary. +# + +TSHOME=%%TSHOME%% +if [ -z "$LD_LIBRARY_PATH" ]; then + export LD_LIBRARY_PATH=$TSHOME +else + export LD_LIBRARY_PATH=$TSHOME:$LD_LIBRARY_PATH +fi + +if [ -r $TSHOME/setduplexfake.so ]; then + if [ -z "$LD_PRELOAD" ]; then + export LD_PRELOAD=$TSHOME/setduplexfake.so + else + export LD_PRELOAD=$TSHOME/setduplexfake.so:$LD_PRELOAD + fi +fi + +exec $TSHOME/TeamSpeak.bin "$@" |