}
launch_simple_sr_server() {
+ mkdir -p $SOCKDIR
LD_PRELOAD=libsocket_wrapper.so:libuid_wrapper.so UID_WRAPPER=1 UID_WRAPPER_ROOT=1 $OCSERV $* &
}
# the config packets exchanged, causing retries and leading to a longer negotiation period.
# [use `socat -x` for a hex log of I/O to/from the connected sockets]
+ mkdir -p $SOCKDIR
LD_PRELOAD=libsocket_wrapper.so socat -t 120 -T 120 -d -d \
SYSTEM:"LD_PRELOAD= $SUDO $PPPD noauth local debug nodefaultroute logfile '$LOGFILE' $*",pty,raw,echo=0 \
OPENSSL-LISTEN:443,verify=0,cert="$CERT",key="$KEY" 2>&1 &
ret=1
fi
wait
- test -n "$SOCKDIR" && rm -rf $SOCKDIR && mkdir -p $SOCKDIR
+ test -n "$SOCKDIR" && rm -rf $SOCKDIR
return $ret
}