root/usr/local/sbin/ppp-linkdown @ 3a13f094
1 | cbe4111f | Ermal Luçi | #!/bin/sh
|
---|---|---|---|
2 | 63292199 | gnhb | 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 | 05f3ffa4 | Ermal | /sbin/pfctl -b $3 |
7 | cbe4111f | Ermal Luçi | # delete the node just in case mpd cannot do that
|
8 | d32a40c1 | gnhb | /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 |