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