summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-linkdown
blob: 59b2ce0d1eac870d4a0f97e495b9114de70c1c3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/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 -b $4
# delete the node just in case mpd cannot do that
/usr/sbin/ngctl shutdown $1:
/bin/rm -f /var/etc/nameserver_$1
# Do not remove gateway used during filter reload.
# /bin/rm -f /tmp/$1_router
/bin/rm -f /tmp/$1up
/usr/local/sbin/pfSctl -c 'service reload dns'
OpenPOWER on IntegriCloud