clean up mtu handling in ppp init scripts
[openwrt/svn-archive/archive.git] / openwrt / package / ppp / files / ifup.pppoa
index 449c6d53dc4a799ca12f405a31aa826eaf27f44f..fc2e82eff56e783ff42e1124543ff682ced28d0e 100644 (file)
@@ -25,7 +25,6 @@ while :; do
   IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
   MTU=$(nvram get ppp_mtu)
   MTU=${MTU:-1500}
-  MTU=${MTU:+ mtu $MTU mru $MTU}
 
   /usr/sbin/pppd nodetach \
        plugin pppoatm.so ${VPI:-8}.${VCI:-35} \
@@ -34,7 +33,7 @@ while :; do
        linkname $type \
        user "$USERNAME" \
        password "$PASSWORD" \
-       $MTU \
+       mtu $MTU mru $MTU
        $IDLETIME \
        $REDIAL