Openwrt/openwrt/package/ppp/files/etc/ppp/ip-down
Nicolas Thill ef5c0e48fa sync ppp with trunk and convert it to -ng.
SVN-Revision: 3826
2006-05-24 07:19:27 +00:00

10 lines
210 B
Bash
Executable File

#!/bin/sh
[ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug "iface"
[ -d /etc/ppp/ip-down.d ] && {
for SCRIPT in /etc/ppp/ip-down.d/*
do
[ -x "$SCRIPT" ] && "$SCRIPT" $@
done
}