diff options
Diffstat (limited to 'openwrt/package/ppp/files/etc/ppp/ip-down')
-rwxr-xr-x | openwrt/package/ppp/files/etc/ppp/ip-down | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/openwrt/package/ppp/files/etc/ppp/ip-down b/openwrt/package/ppp/files/etc/ppp/ip-down index 044759fbf..334bcb885 100755 --- a/openwrt/package/ppp/files/etc/ppp/ip-down +++ b/openwrt/package/ppp/files/etc/ppp/ip-down @@ -1,2 +1,9 @@ #!/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 +} |