diff options
author | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-10 23:27:28 +0000 |
---|---|---|
committer | nico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2005-08-10 23:27:28 +0000 |
commit | a0525c29028ef599fddb31e96cc4b0835008a5d2 (patch) | |
tree | d6ba77cc78d0c8f4c66fa574ba3de931209f1f37 /openwrt/package/ppp/files | |
parent | 1dfd6bcfa9af0e7a950a658577222c2b432fe99f (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/package/ppp/files')
-rw-r--r-- | openwrt/package/ppp/files/ifup.pppoe | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index 94179a3eaa..dbf58c380f 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 |