Revision c880d032
Added by Jim Pingle about 14 years ago
usr/local/sbin/ovpn-linkup | ||
---|---|---|
2 | 2 |
|
3 | 3 |
# let the configuration system know that the ip has changed. |
4 | 4 |
#/usr/local/sbin/pfSctl -c "interface newip $interface" |
5 |
if [ -n $route_vpn_gateway ]; then
|
|
5 |
if [ "" != "$route_vpn_gateway" ]; then
|
|
6 | 6 |
/bin/echo $route_vpn_gateway > /tmp/$1_router |
7 | 7 |
else |
8 |
/bin/echo $4 > /tmp/$1_router
|
|
8 |
/bin/echo $5 > /tmp/$1_router
|
|
9 | 9 |
fi |
10 | 10 |
/usr/bin/touch /tmp/$1up |
11 | 11 |
# reload filter |
Also available in: Unified diff
Fix ovpn-linkup so it writes out the proper gateway IP in all cases.
(For some reason -n wasn't working properly, plus $5 is the right parameter for the remote IP here)