Project

General

Profile

Download (416 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

    
7
ifindex="${1##?????}"
8
if [ -e /dev/tun$ifindex ]; then
9
	if [ "" != "$route_vpn_gateway" ]; then
10
		/bin/echo $route_vpn_gateway > /tmp/$1_router
11
	else
12
		/bin/echo $5 > /tmp/$1_router
13
	fi
14
fi
15

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