aboutsummaryrefslogtreecommitdiffstats
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
commit0b56edf44d834d828b1cc8aa841ebd5526029a0c (patch)
tree592fabf0c2687786d1587800ec0c5d15352ece88
parent4d95d94a567a6623629ac023544014636cf10cb6 (diff)
downloadupstream-0b56edf44d834d828b1cc8aa841ebd5526029a0c.tar.gz
upstream-0b56edf44d834d828b1cc8aa841ebd5526029a0c.tar.bz2
upstream-0b56edf44d834d828b1cc8aa841ebd5526029a0c.zip
Make MTU default to 1492 when ppp_mtu nvram variable is not set
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1606 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/ppp/files/ifup.pppoe1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/ppp/files/ifup.pppoe b/package/ppp/files/ifup.pppoe
index 94179a3eaa..dbf58c380f 100644
--- 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