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

# let the configuration system know that the ip has changed.
#/usr/local/sbin/pfSctl -c "interface newip $interface"
/bin/echo $4 > /tmp/$1_router
/usr/bin/touch /tmp/$1up
# reload filter 
/usr/local/sbin/pfSctl -c "interface newip $1"
exit 0
OpenPOWER on IntegriCloud