8 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
9 [ -z "$PPP_IPPARAM" ] ||
{
10 env
-i ACTION
="ifdown" INTERFACE
="$PPP_IPPARAM" DEVICE
="$PPP_IFACE" PROTO
=ppp
/sbin
/hotplug-call
"iface"
12 # remove the interface's network state
13 uci_revert_state network
"$PPP_IPPARAM"
16 [ -d /etc
/ppp
/ip-down.d
] && {
17 for SCRIPT
in /etc
/ppp
/ip-down.d
/*
19 [ -x "$SCRIPT" ] && "$SCRIPT" $@