2 config_get ifname
"$1" ifname
4 config_set
"$1" ifname
"ppp$pppdev"
5 config_set
"$1" unit
"$pppdev"
10 config_get device
"$cfg" device
11 config_get unit
"$cfg" unit
12 config_get username
"$cfg" username
13 config_get password
"$cfg" password
14 config_get keepalive
"$cfg" keepalive
15 interval
="${keepalive%%*[, ]}"
16 [ "$interval" != "$keepalive" ] || interval
=5
18 config_get demand
"$cfg" demand
19 [ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp
/resolv.conf
21 ${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive##[, ]*}} \
22 ${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
26 ${username:+user "$username" password "$password"} \
This page took 0.040544 seconds and 5 git commands to generate.