mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-18 12:50:51 +00:00
ppp: extend the r26742 change to ip-down too
SVN-Revision: 26743
This commit is contained in:
parent
8d47f51f7c
commit
7982978391
@ -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 ] && {
|
||||
|
Loading…
Reference in New Issue
Block a user