summaryrefslogtreecommitdiff
path: root/net/tsocks/files/tsocks.sh
diff options
context:
space:
mode:
Diffstat (limited to 'net/tsocks/files/tsocks.sh')
-rw-r--r--net/tsocks/files/tsocks.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/tsocks/files/tsocks.sh b/net/tsocks/files/tsocks.sh
new file mode 100644
index 00000000000..448860e2191
--- /dev/null
+++ b/net/tsocks/files/tsocks.sh
@@ -0,0 +1,9 @@
+#!@SH@
+
+if [ $# -eq 0 ]; then
+ echo "usage: `basename $0` command" 1>&2
+ exit 1
+fi
+
+LD_PRELOAD="@PREFIX@/lib/libtsocks.so"; export LD_PRELOAD
+exec $*