root/usr/local/sbin/ovpn-linkup @ c880d032
1 |
#!/bin/sh
|
---|---|
2 |
|
3 |
# let the configuration system know that the ip has changed.
|
4 |
#/usr/local/sbin/pfSctl -c "interface newip $interface"
|
5 |
if [ "" != "$route_vpn_gateway" ]; then |
6 |
/bin/echo $route_vpn_gateway > /tmp/$1_router |
7 |
else
|
8 |
/bin/echo $5 > /tmp/$1_router |
9 |
fi
|
10 |
/usr/bin/touch /tmp/$1up
|
11 |
# reload filter
|
12 |
/usr/local/sbin/pfSctl -c "interface newip $1" |
13 |
exit 0
|