root/usr/local/sbin/ppp-linkdown @ 3a13f094
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 |
/sbin/pfctl -b $3 |
7 |
# delete the node just in case mpd cannot do that
|
8 |
/usr/sbin/ngctl shutdown $1:
|
9 |
/bin/rm -f /var/etc/nameserver_$1 |
10 |
/bin/rm -f /tmp/$1_router |
11 |
/bin/rm -f /tmp/$1up |