clean up mtu handling in ppp init scripts
[openwrt/svn-archive/archive.git] / openwrt / package / ppp / files / ifup.pppoe
index 111113122229c1326b38ad8dbf8ff5b22c5ca406..a30dd2a9d9936c6efdc0799a01a75f9841a111e9 100644 (file)
@@ -24,7 +24,6 @@ while :; do
   IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
   MTU=$(nvram get ppp_mtu)
   MTU=${MTU:-1492}
-  MTU=${MTU:+ mtu $MTU mru $MTU}
 
   ifconfig $IFNAME up
   /usr/sbin/pppd nodetach \
@@ -35,7 +34,7 @@ while :; do
        linkname $type \
        user "$USERNAME" \
        password "$PASSWORD" \
-       $MTU \
+       mtu $MTU mru $MTU
        $IDLETIME \
        $REDIAL \
        nic-$IFNAME