summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ovpn-linkup
blob: b613a9a8453359eac0e56cdfe8486a1ce85a08a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# let the configuration system know that the ip has changed.
#/usr/local/sbin/pfSctl -c "interface newip $interface"
if [ "" != "$route_vpn_gateway" ]; then
	/bin/echo $route_vpn_gateway > /tmp/$1_router
else
	/bin/echo $5 > /tmp/$1_router
fi
/usr/bin/touch /tmp/$1up
# reload filter 
/usr/local/sbin/pfSctl -c "interface newip $1"
exit 0
OpenPOWER on IntegriCloud