ovpn-linkup 425 Bytes
Newer Older
Ad Schellevis's avatar
Ad Schellevis committed
1 2 3
#!/bin/sh

# let the configuration system know that the ip has changed.
4
# /usr/local/opnsense/service/configd_ctl.py interface newip $interface
Ad Schellevis's avatar
Ad Schellevis committed
5 6 7 8 9 10 11 12 13 14

if [ "${dev_type}" = "tun" ]; then
	if [ "" != "$route_vpn_gateway" ]; then
		/bin/echo $route_vpn_gateway > /tmp/$1_router
	else
		/bin/echo $5 > /tmp/$1_router
	fi
fi

/usr/bin/touch /tmp/$1up
15
# reload filter
16
/usr/local/opnsense/service/configd_ctl.py interface newip $1
Ad Schellevis's avatar
Ad Schellevis committed
17
exit 0