parent
f5708f2369
commit
18e061bd2a
|
@ -39,6 +39,9 @@ start_pppd() {
|
||||||
interval="${keepalive##*[, ]}"
|
interval="${keepalive##*[, ]}"
|
||||||
[ "$interval" != "$keepalive" ] || interval=5
|
[ "$interval" != "$keepalive" ] || interval=5
|
||||||
|
|
||||||
|
config_get_bool peerdns "$cfg" peerdns 1
|
||||||
|
[ "$peerdns" -eq 1 ] && peerdns="usepeerdns" || peerdns=""
|
||||||
|
|
||||||
config_get demand "$cfg" demand
|
config_get demand "$cfg" demand
|
||||||
[ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf.auto
|
[ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf.auto
|
||||||
|
|
||||||
|
@ -48,7 +51,7 @@ start_pppd() {
|
||||||
/usr/sbin/pppd "$@" \
|
/usr/sbin/pppd "$@" \
|
||||||
${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
|
${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
|
||||||
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
|
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
|
||||||
usepeerdns \
|
$peerdns \
|
||||||
$defaultroute \
|
$defaultroute \
|
||||||
${username:+user "$username" password "$password"} \
|
${username:+user "$username" password "$password"} \
|
||||||
unit "$unit" \
|
unit "$unit" \
|
||||||
|
|
Loading…
Reference in New Issue