Project

General

Profile

Download (584 Bytes) Statistics
| Branch: | Tag: | Revision:
1 8d964cea Ermal
#!/bin/sh
2
3
# let the configuration system know that the ip has changed.
4 04c528e7 Ermal
#/usr/local/sbin/pfSctl -c "interface newip $interface"
5 40fd50c8 Ermal
6 08185f4a Renato Botelho
if [ "${dev_type}" = "tun" ]; then
7 15fbb5ec Renato Botelho
	if [ -n "${route_vpn_gateway}" ]; then
8
		/bin/echo ${route_vpn_gateway} > /tmp/${1}_router
9
	elif [ -n "${ifconfig_remote}" ]; then
10
		/bin/echo ${ifconfig_remote} > /tmp/${1}_router
11
	elif [ -n "${ifconfig_local}" ]; then
12
		/bin/echo ${ifconfig_local} > /tmp/${1}_router
13 40fd50c8 Ermal
	else
14 15fbb5ec Renato Botelho
		/bin/echo ${5} > /tmp/${1}_router
15 40fd50c8 Ermal
	fi
16 7f2c8034 Ermal
fi
17 40fd50c8 Ermal
18 15fbb5ec Renato Botelho
/usr/bin/touch /tmp/${1}up
19 8d964cea Ermal
# reload filter 
20 15fbb5ec Renato Botelho
/usr/local/sbin/pfSctl -c "interface newip ${1}"
21 8d964cea Ermal
exit 0