aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2005-10-19 13:07:25 +0000
committerFelix Fietkau <nbd@openwrt.org>2005-10-19 13:07:25 +0000
commit9f35dd214d436fbbcecdb5358a54e70ceb4bcf0e (patch)
tree251972850583c2c20b886607c98cec5f8725dba6
parent611324e585a948a01dc6981d2f7615cb21523981 (diff)
downloadupstream-9f35dd214d436fbbcecdb5358a54e70ceb4bcf0e.tar.gz
upstream-9f35dd214d436fbbcecdb5358a54e70ceb4bcf0e.tar.bz2
upstream-9f35dd214d436fbbcecdb5358a54e70ceb4bcf0e.zip
clean up mtu handling in ppp init scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2181 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--openwrt/package/ppp/files/ifup.pppoa3
-rw-r--r--openwrt/package/ppp/files/ifup.pppoe3
2 files changed, 2 insertions, 4 deletions
diff --git a/openwrt/package/ppp/files/ifup.pppoa b/openwrt/package/ppp/files/ifup.pppoa
index 449c6d53dc4..fc2e82eff56 100644
--- a/openwrt/package/ppp/files/ifup.pppoa
+++ b/openwrt/package/ppp/files/ifup.pppoa
@@ -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
diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe
index 11111312222..a30dd2a9d99 100644
--- a/openwrt/package/ppp/files/ifup.pppoe
+++ b/openwrt/package/ppp/files/ifup.pppoe
@@ -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