1
|
#!/bin/sh
|
2
|
if [ -f /tmp/$1up ] && [ -f /conf/$1.log ]; then
|
3
|
seconds=$((`date -j +%s` - `/usr/bin/stat -f %m /tmp/$1up`))
|
4
|
/usr/local/sbin/ppp-log-uptime.sh $seconds $1 &
|
5
|
fi
|
6
|
if [ -f "/tmp/${interface}_defaultgw" ]; then
|
7
|
route delete default $4
|
8
|
fi
|
9
|
/sbin/pfctl -b $3 -b $4
|
10
|
# delete the node just in case mpd cannot do that
|
11
|
/usr/sbin/ngctl shutdown $1:
|
12
|
/bin/rm -f /var/etc/nameserver_$1
|
13
|
# Do not remove gateway used during filter reload.
|
14
|
/bin/rm -f /tmp/$1_router
|
15
|
/bin/rm -f /tmp/$1up
|
16
|
/bin/rm -f /tmp/$1_ip
|
17
|
/usr/local/sbin/pfSctl -c 'service reload dns'
|