#!/bin/sh echo "# OpenVPN 2.1 Config" if [ "$OPENVPN_LZO_LOCAL" ];then echo "local $OPENVPN_LZO_LOCAL" fi if [ "$OPENVPN_LZO_PROTO" == "tcp" ]; then echo "proto tcp-$OPENVPN_LZO_MODE" else echo "proto udp" fi echo "port $OPENVPN_LZO_PORT" if [ "$OPENVPN_LZO_TYPE" == "tap" ]; then echo "dev tap" else echo "dev tun" #if [ -r /dev/misc/net/tun ]; then # echo "dev-node /dev/misc/net/tun" #else # echo "dev-node /dev/net/tun" #fi fi if [ "$OPENVPN_LZO_AUTH_TYPE" == "certs" ]; then cat <