diff options
-rwxr-xr-x | usr/local/sbin/ovpn-linkup | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/local/sbin/ovpn-linkup b/usr/local/sbin/ovpn-linkup index 3ebf32e..2f3246e 100755 --- a/usr/local/sbin/ovpn-linkup +++ b/usr/local/sbin/ovpn-linkup @@ -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 |