mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-24 03:50:37 +02:00
made ppp usepeerdns configurable, fixes #3187
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10562 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6e04a82d53
commit
a2e11fbca7
@ -39,6 +39,9 @@ start_pppd() {
|
||||
interval="${keepalive##*[, ]}"
|
||||
[ "$interval" != "$keepalive" ] || interval=5
|
||||
|
||||
config_get_bool peerdns "$cfg" peerdns 1
|
||||
[ "$peerdns" -eq 1 ] && peerdns="usepeerdns" || peerdns=""
|
||||
|
||||
config_get demand "$cfg" demand
|
||||
[ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf.auto
|
||||
|
||||
@ -48,7 +51,7 @@ start_pppd() {
|
||||
/usr/sbin/pppd "$@" \
|
||||
${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \
|
||||
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
|
||||
usepeerdns \
|
||||
$peerdns \
|
||||
$defaultroute \
|
||||
${username:+user "$username" password "$password"} \
|
||||
unit "$unit" \
|
||||
|
Loading…
Reference in New Issue
Block a user