projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pppd: pass on the configured upper limit for mtu to the channel that ppp uses
[openwrt.git]
/
package
/
ppp
/
files
/
ppp.sh
diff --git
a/package/ppp/files/ppp.sh
b/package/ppp/files/ppp.sh
index
a162b97
..
343223a
100644
(file)
--- a/
package/ppp/files/ppp.sh
+++ b/
package/ppp/files/ppp.sh
@@
-1,7
+1,6
@@
scan_ppp() {
config_get ifname "$1" ifname
pppdev="${pppdev:-0}"
scan_ppp() {
config_get ifname "$1" ifname
pppdev="${pppdev:-0}"
- config_set "$1" device "$ifname"
config_set "$1" ifname "ppp$pppdev"
config_set "$1" unit "$pppdev"
}
config_set "$1" ifname "ppp$pppdev"
config_set "$1" unit "$pppdev"
}
@@
-13,10
+12,13
@@
start_pppd() {
config_get username "$cfg" username
config_get password "$cfg" password
config_get keepalive "$cfg" keepalive
config_get username "$cfg" username
config_get password "$cfg" password
config_get keepalive "$cfg" keepalive
+ interval="${keepalive%%*[, ]}"
+ [ "$interval" != "$keepalive" ] || interval=5
+
config_get demand "$cfg" demand
[ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf
/usr/sbin/pppd "$@" \
config_get demand "$cfg" demand
[ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf
/usr/sbin/pppd "$@" \
- ${keepalive:+lcp-echo-interval
5 lcp-echo-failure $keepalive
} \
+ ${keepalive:+lcp-echo-interval
$interval lcp-echo-failure ${keepalive##[, ]*}
} \
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
usepeerdns \
defaultroute \
${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \
usepeerdns \
defaultroute \
This page took
0.023444 seconds
and
4
git commands to generate.