Use env var provided by openvpn to determine if it's tun or tap, it should fix #3475

This commit is contained in:
Renato Botelho 2014-02-20 08:21:23 -03:00
parent 26ea40b7f1
commit 070dad6c8d

View File

@ -3,9 +3,7 @@
# let the configuration system know that the ip has changed.
#/usr/local/sbin/pfSctl -c "interface newip $interface"
ifindex="${1##?????}"
if [ -e /dev/tun$ifindex ]; then
if [ "${dev_type}" = "tun" ]; then
if [ "" != "$route_vpn_gateway" ]; then
/bin/echo $route_vpn_gateway > /tmp/$1_router
else