Source

hproxy / hproxy

#!/bin/bash

LIB=libhproxy.so.1
dir=$(cd "`dirname $0`"; pwd)

[ -f "$dir/$LIB" ] && export LD_LIBRARY_PATH="$dir:$LD_LIBRARY_PATH"
[ -f "$dir/hproxy.env" ] && source "$dir/hproxy.env"

export LD_PRELOAD=$LIB

exec "$@"