summaryrefslogtreecommitdiffstats
path: root/openwrt
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-10 23:27:28 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-08-10 23:27:28 +0000
commita0525c29028ef599fddb31e96cc4b0835008a5d2 (patch)
treed6ba77cc78d0c8f4c66fa574ba3de931209f1f37 /openwrt
parent1dfd6bcfa9af0e7a950a658577222c2b432fe99f (diff)
Make MTU default to 1492 when ppp_mtu nvram variable is not set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@1606 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt')
-rw-r--r--openwrt/package/ppp/files/ifup.pppoe1
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe
index 94179a3ea..dbf58c380 100644
--- a/openwrt/package/ppp/files/ifup.pppoe
+++ b/openwrt/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