#!/bin/sh
# /etc/ppp/ip-down
#
#  Called just after PPP network interface is brought down. Default script
#  takes no action. By providing an executable file /etc/ppp/ip-down.local
#  (or by making it a directory containing executable files) scripts can be
#  added.
#
#  Argument summary:
#    interface-name tty-device speed local-IP remote-IP ipparam-value
#
#  See pppd(8) for full details on how this script is run and used.
#

LOCAL="/etc/ppp/ip-down.local"
if [ -d "${LOCAL}" ]
then
	for SCRIPT in "${LOCAL}"/*
	do
		[ -x "${SCRIPT}" ] || continue
		${SCRIPT} "$@"
	done
elif [ -x "${LOCAL}" ]
then
	${LOCAL} "$@"
fi
