ppp: extend the r26742 change to ip-down too
SVN-Revision: 26743
This commit is contained in:
parent
8d47f51f7c
commit
7982978391
1 changed files with 7 additions and 4 deletions
|
@ -8,10 +8,13 @@ PPP_REMOTE="$5"
|
||||||
PPP_IPPARAM="$(echo $6 | sed 's/\./_/g')"
|
PPP_IPPARAM="$(echo $6 | sed 's/\./_/g')"
|
||||||
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
|
export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
|
||||||
[ -z "$PPP_IPPARAM" ] || {
|
[ -z "$PPP_IPPARAM" ] || {
|
||||||
env -i ACTION="ifdown" INTERFACE="$PPP_IPPARAM" DEVICE="$PPP_IFACE" PROTO=ppp /sbin/hotplug-call "iface"
|
case "$PPP_IFACE" in
|
||||||
|
# only handle uci managed interfaces here, others are done by generic hotplug
|
||||||
# remove the interface's network state
|
3g-*|ppp-*|pppoa-*|pppoe-*|pptp-*)
|
||||||
uci_revert_state network "$PPP_IPPARAM"
|
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 ] && {
|
[ -d /etc/ppp/ip-down.d ] && {
|
||||||
|
|
Loading…
Reference in a new issue