nuke mdev and replace it with hotplug2 :)
[openwrt/svn-archive/archive.git] / package / ppp / files / etc / ppp / ip-down
1 #!/bin/sh
2 [ -z "$6" ] || env -i ACTION="ifdown" INTERFACE="$6" PROTO=ppp /sbin/hotplug-call "iface"
3
4 [ -d /etc/ppp/ip-down.d ] && {
5 for SCRIPT in /etc/ppp/ip-down.d/*
6 do
7 [ -x "$SCRIPT" ] && "$SCRIPT" $@
8 done
9 }