Project

General

Profile

Download (395 Bytes) Statistics
| Branch: | Tag: | Revision:
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

    
6
if [ "${dev_type}" = "tun" ]; then
7
	if [ "" != "$route_vpn_gateway" ]; then
8
		/bin/echo $route_vpn_gateway > /tmp/$1_router
9
	else
10
		/bin/echo $5 > /tmp/$1_router
11
	fi
12
fi
13

    
14
/usr/bin/touch /tmp/$1up
15
# reload filter 
16
/usr/local/sbin/pfSctl -c "interface newip $1"
17
exit 0
(6-6/17)