diff options
Diffstat (limited to 'src/usr/local/sbin/ovpn-linkup')
-rwxr-xr-x | src/usr/local/sbin/ovpn-linkup | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/usr/local/sbin/ovpn-linkup b/src/usr/local/sbin/ovpn-linkup index 1164835..500266e 100755 --- a/src/usr/local/sbin/ovpn-linkup +++ b/src/usr/local/sbin/ovpn-linkup @@ -1,8 +1,5 @@ #!/bin/sh -# let the configuration system know that the ip has changed. -#/usr/local/sbin/pfSctl -c "interface newip $interface" - if [ "${dev_type}" = "tun" ]; then if [ -n "${route_vpn_gateway}" ]; then /bin/echo ${route_vpn_gateway} > /tmp/${1}_router @@ -13,6 +10,10 @@ if [ "${dev_type}" = "tun" ]; then else /bin/echo ${5} > /tmp/${1}_router fi +else + if [ -n "${route_vpn_gateway}" ]; then + /bin/echo ${route_vpn_gateway} > /tmp/${1}_router + fi fi /usr/bin/touch /tmp/${1}up |