From 0b56edf44d834d828b1cc8aa841ebd5526029a0c Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 10 Aug 2005 23:27:28 +0000 Subject: 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 --- package/ppp/files/ifup.pppoe | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3