#!/bin/sh

# This file should not be modified -- make local changes to
# /etc/ppp/ip-down.local instead

LOGDEVICE=$6
REALDEVICE=$1

export PATH=/sbin:/usr/sbin:/bin:/usr/bin

for f in /etc/ppp/ip-down.d/*; do
	[ -x "$f" ] || continue

	# Don't run *.rpm* and *~ scripts
	[ "${f%.rpm*}" = "$f" -a "${f%\~}" = "$f" ] || continue

	"$f" "$@"
done

IP_DOWN_LOCAL=/etc/ppp/ip-down.local
[ -x "$IP_DOWN_LOCAL" ] && "$IP_DOWN_LOCAL" "$@"

/etc/sysconfig/network-scripts/ifdown-post "ifcfg-$LOGDEVICE"

exit 0
