Revision e0712c75
Added by Chris Buechler over 9 years ago
src/usr/local/sbin/ovpn-linkup | ||
---|---|---|
1 | 1 |
#!/bin/sh |
2 | 2 |
|
3 |
# let the configuration system know that the ip has changed. |
|
4 |
#/usr/local/sbin/pfSctl -c "interface newip $interface" |
|
5 |
|
|
6 | 3 |
if [ "${dev_type}" = "tun" ]; then |
7 | 4 |
if [ -n "${route_vpn_gateway}" ]; then |
8 | 5 |
/bin/echo ${route_vpn_gateway} > /tmp/${1}_router |
... | ... | |
13 | 10 |
else |
14 | 11 |
/bin/echo ${5} > /tmp/${1}_router |
15 | 12 |
fi |
13 |
else |
|
14 |
if [ -n "${route_vpn_gateway}" ]; then |
|
15 |
/bin/echo ${route_vpn_gateway} > /tmp/${1}_router |
|
16 |
fi |
|
16 | 17 |
fi |
17 | 18 |
|
18 | 19 |
/usr/bin/touch /tmp/${1}up |
Also available in: Unified diff
Use route_vpn_gateway for tap-type OpenVPN instances as well where specified. Remove old and wrongly copy/pasted comments while here. Ticket #5981