4 .
/lib
/network
/config.sh
11 PPP_IPPARAM
="$(echo $6 | sed 's/\./_/g')"
13 export PPP_IFACE PPP_TTY PPP_SPEED PPP_LOCAL PPP_REMOTE PPP_IPPARAM
14 [ -z "$PPP_IPPARAM" -o -z "$PPP_LOCAL" ] ||
{
15 uci_set_state network
"$PPP_IPPARAM" ifname
"$PPP_IFACE"
16 uci_set_state network
"$PPP_IPPARAM" ipaddr
"$PPP_LOCAL"
17 uci_set_state network
"$PPP_IPPARAM" gateway
"$PPP_REMOTE"
19 local dns
="$DNS1${DNS2:+ $DNS2}"
20 [ -n "$dns" ] && add_dns
"$PPP_IPPARAM" $dns
23 [ -z "$PPP_IPPARAM" ] || env
-i ACTION
="ifup" INTERFACE
="$PPP_IPPARAM" DEVICE
="$PPP_IFACE" PROTO
=ppp
/sbin
/hotplug-call
"iface"
25 [ -d /etc
/ppp
/ip-up.d
] && {
26 for SCRIPT
in /etc
/ppp
/ip-up.d
/*
28 [ -x "$SCRIPT" ] && "$SCRIPT" "$@"