Make MTU default to 1492 when ppp_mtu nvram variable is not set
authorNicolas Thill <nico@openwrt.org>
Wed, 10 Aug 2005 23:18:22 +0000 (23:18 +0000)
committerNicolas Thill <nico@openwrt.org>
Wed, 10 Aug 2005 23:18:22 +0000 (23:18 +0000)
SVN-Revision: 1604

openwrt/package/ppp/files/ifup.pppoe

index 6bac6a6d15b38aa4a3b91abcf2d441c01372543d..560a9069890dd99cafbd1b41a14d95090b08365e 100644 (file)
@@ -21,6 +21,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