aboutsummaryrefslogtreecommitdiffstats
path: root/package/ppp
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2011-04-20 12:08:12 +0000
committerJo-Philipp Wich <jow@openwrt.org>2011-04-20 12:08:12 +0000
commit6b1337376f13201edee43c9dcb5c29bfed7544f4 (patch)
treedf37cf0631c6f9d40ccc825ea359632b5d1d3598 /package/ppp
parent4e52672d7ecb2ce2bdba297e02948f61b5d8c445 (diff)
downloadupstream-6b1337376f13201edee43c9dcb5c29bfed7544f4.tar.gz
upstream-6b1337376f13201edee43c9dcb5c29bfed7544f4.tar.bz2
upstream-6b1337376f13201edee43c9dcb5c29bfed7544f4.zip
[package] ppp: extend the r26742 change to ip-down too
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26743 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ppp')
-rwxr-xr-xpackage/ppp/files/etc/ppp/ip-down11
1 files changed, 7 insertions, 4 deletions
diff --git a/package/ppp/files/etc/ppp/ip-down b/package/ppp/files/etc/ppp/ip-down
index f26cf4db03..487ff6b46b 100755
--- a/package/ppp/files/etc/ppp/ip-down
+++ b/package/ppp/files/etc/ppp/ip-down
@@ -8,10 +8,13 @@ PPP_REMOTE="$5"
PPP_IPPARAM="$(echo $6 | sed 's/\./_/g')"
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
[ -z "$PPP_IPPARAM" ] || {
- env -i ACTION="ifdown" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface"
-
- # remove the interface's network state
- uci_revert_state network "$PPP_IPPARAM"
+ case "$PPP_IFACE" in
+ # only handle uci managed interfaces here, others are done by generic hotplug
+ 3g-*|ppp-*|pppoa-*|pppoe-*|pptp-*)
+ env -i ACTION="ifdown" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface"
+ uci_revert_state network "$PPP_IPPARAM"
+ ;;
+ esac
}
[ -d /etc/ppp/ip-down.d ] && {