summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-linkdown
blob: 3734b0b5b56ff19306ba764ad6d1df960535080f (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
if [ -f /tmp/$1up ] && [ -f /conf/$1.log ]; then
        seconds=$((`date -j +%s` - `/usr/bin/stat -f %m /tmp/$1up`))
        /usr/local/sbin/ppp-log-uptime.sh $seconds $1 &
fi
/sbin/pfctl -b $3
# delete the node just in case mpd cannot do that
/usr/sbin/ngctl shutdown $1:
/bin/rm -f /var/etc/nameserver_$1
/bin/rm -f /tmp/$1_router
/bin/rm -f /tmp/$1up
OpenPOWER on IntegriCloud