diff options
| author | root <root@localhost.localdomain> | 2015-12-07 03:21:46 -0800 |
|---|---|---|
| committer | root <root@localhost.localdomain> | 2015-12-07 03:21:46 -0800 |
| commit | 036bbfaff9b5ad7a04e91b03b38688f5d03a878c (patch) | |
| tree | 0e2babfb0fe188603ac41674b0ecc1024b5bf117 /netcon/zerotier-intercept | |
| parent | afafde257171288d096b3d25532aef81f8ed9764 (diff) | |
| download | infinitytier-036bbfaff9b5ad7a04e91b03b38688f5d03a878c.tar.gz infinitytier-036bbfaff9b5ad7a04e91b03b38688f5d03a878c.zip | |
Modified test scripts to match new naming conventions
Diffstat (limited to 'netcon/zerotier-intercept')
| -rwxr-xr-x | netcon/zerotier-intercept | 12 |
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 ] |
