summaryrefslogtreecommitdiff
path: root/openwrt/package/ppp
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2005-08-10 23:27:28 +0000
committerNicolas Thill <nico@openwrt.org>2005-08-10 23:27:28 +0000
commite0f3c67024ea3069c4ae129110b883c44647b00f (patch)
treed6ba77cc78d0c8f4c66fa574ba3de931209f1f37 /openwrt/package/ppp
parent6ece388d80e6f9152bc052ddac97d57d64204e5c (diff)
downloadmtk-20170518-e0f3c67024ea3069c4ae129110b883c44647b00f.zip
mtk-20170518-e0f3c67024ea3069c4ae129110b883c44647b00f.tar.gz
mtk-20170518-e0f3c67024ea3069c4ae129110b883c44647b00f.tar.bz2
Make MTU default to 1492 when ppp_mtu nvram variable is not set
SVN-Revision: 1606
Diffstat (limited to 'openwrt/package/ppp')
-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 94179a3..dbf58c3 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