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 |
40fd50c8
|
Ermal
|
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 |
7f2c8034
|
Ermal
|
fi
|
13 |
40fd50c8
|
Ermal
|
|
14 |
8d964cea
|
Ermal
|
/usr/bin/touch /tmp/$1up
|
15 |
|
|
# reload filter
|
16 |
55c51af7
|
Ermal
|
/usr/local/sbin/pfSctl -c "interface newip $1"
|
17 |
8d964cea
|
Ermal
|
exit 0
|