projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make MTU default to 1492 when ppp_mtu nvram variable is not set
[openwrt.git]
/
package
/
ppp
/
files
/
ifup.pppoe
diff --git
a/package/ppp/files/ifup.pppoe
b/package/ppp/files/ifup.pppoe
index 94179a3eaa473d2e4034d1561301349779b9c8e5..dbf58c380fe1145d77be2deacba78276ee3ef2d8 100644
(file)
--- a/
package/ppp/files/ifup.pppoe
+++ b/
package/ppp/files/ifup.pppoe
@@
-23,6
+23,7
@@
while :; do
IDLETIME=$(nvram get ppp_idletime)
IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
MTU=$(nvram get ppp_mtu)
+ MTU=${MTU:-1492}
MTU=${MTU:+ mtu $MTU mru $MTU}
ifconfig $IFNAME up