diff options
| author | Joseph Henry <josephjah@gmail.com> | 2015-12-04 15:39:35 -0800 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2015-12-04 15:39:35 -0800 |
| commit | 7ea53dd21b320cc94077444ec18f8482f5b5cd19 (patch) | |
| tree | 88cee064615721f1e2e5a3aa83a4dca80d21fecc /netcon/docker-test/zerotier-intercept | |
| parent | ac8918992b647c80c6da4b7c0956fd383b15e9d7 (diff) | |
| download | infinitytier-7ea53dd21b320cc94077444ec18f8482f5b5cd19.tar.gz infinitytier-7ea53dd21b320cc94077444ec18f8482f5b5cd19.zip | |
(WIP) Additional test script changes
Diffstat (limited to 'netcon/docker-test/zerotier-intercept')
| -rwxr-xr-x | netcon/docker-test/zerotier-intercept | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/netcon/docker-test/zerotier-intercept b/netcon/docker-test/zerotier-intercept deleted file mode 100755 index 85e9fba1..00000000 --- a/netcon/docker-test/zerotier-intercept +++ /dev/null @@ -1,54 +0,0 @@ -#!/bin/sh -# usage: -# /usr/bin/intercept program <args> - -if [ $# = 0 ] ; then - echo "$0: insufficient arguments" - exit -fi - -case "$1" in - on) - if [ -z "$LD_PRELOAD" ] - then - export LD_PRELOAD="/lib/libzerotierintercept.so.1.0" - else - echo $LD_PRELOAD | grep -q "/lib/libzerotierintercept\.so.1.0" || \ - export LD_PRELOAD="/lib/libzerotierintercept.so $LD_PRELOAD" - fi - ;; - off) - export LD_PRELOAD=`echo -n $LD_PRELOAD | sed 's/\/lib\/libzerotierintercept.so.1.0 \?//'` - if [ -z "$LD_PRELOAD" ] - then - unset LD_PRELOAD - fi - ;; - show|sh) - echo "LD_PRELOAD=\"$LD_PRELOAD\"" - ;; - -h|-?) - echo "" - ;; - *) - if [ -z "$LD_PRELOAD" ] - then - export LD_PRELOAD="/lib/libzerotierintercept.so.1.0" - else - echo $LD_PRELOAD | grep -q "/lib/libzerotierintercept\.so.1.0" || \ - export LD_PRELOAD="/lib/libzerotierintercept.so.1.0 $LD_PRELOAD" - fi - - if [ $# = 0 ] - then - ${SHELL:-/bin/sh} - fi - - if [ $# -gt 0 ] - then - exec "$@" - fi - ;; -esac - -#EOF |
