summaryrefslogtreecommitdiff
path: root/netcon/zerotier-intercept
diff options
context:
space:
mode:
Diffstat (limited to 'netcon/zerotier-intercept')
-rwxr-xr-xnetcon/zerotier-intercept12
1 files changed, 6 insertions, 6 deletions
diff --git a/netcon/zerotier-intercept b/netcon/zerotier-intercept
index 85e9fba1..f35c9d15 100755
--- a/netcon/zerotier-intercept
+++ b/netcon/zerotier-intercept
@@ -11,14 +11,14 @@ case "$1" in
on)
if [ -z "$LD_PRELOAD" ]
then
- export LD_PRELOAD="/lib/libzerotierintercept.so.1.0"
+ export LD_PRELOAD="/lib/libzerotierintercept.so"
else
- echo $LD_PRELOAD | grep -q "/lib/libzerotierintercept\.so.1.0" || \
+ echo $LD_PRELOAD | grep -q "/lib/libzerotierintercept\.so" || \
export LD_PRELOAD="/lib/libzerotierintercept.so $LD_PRELOAD"
fi
;;
off)
- export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/lib\/libzerotierintercept.so.1.0 \?//'`
+ export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/lib\/libzerotierintercept.so \?//'`
if [ -z "$LD_PRELOAD" ]
then
unset LD_PRELOAD
@@ -33,10 +33,10 @@ case "$1" in
*)
if [ -z "$LD_PRELOAD" ]
then
- export LD_PRELOAD="/lib/libzerotierintercept.so.1.0"
+ export LD_PRELOAD="/lib/libzerotierintercept.so"
else
- echo $LD_PRELOAD | grep -q "/lib/libzerotierintercept\.so.1.0" || \
- export LD_PRELOAD="/lib/libzerotierintercept.so.1.0 $LD_PRELOAD"
+ echo $LD_PRELOAD | grep -q "/lib/libzerotierintercept\.so" || \
+ export LD_PRELOAD="/lib/libzerotierintercept.so $LD_PRELOAD"
fi
if [ $# = 0 ]