mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-13 06:06:15 +02:00
clean up mtu handling in ppp init scripts
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2181 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6db2db3a9c
commit
1b8fffcf7c
@ -25,7 +25,6 @@ while :; do
|
|||||||
IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
|
IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
|
||||||
MTU=$(nvram get ppp_mtu)
|
MTU=$(nvram get ppp_mtu)
|
||||||
MTU=${MTU:-1500}
|
MTU=${MTU:-1500}
|
||||||
MTU=${MTU:+ mtu $MTU mru $MTU}
|
|
||||||
|
|
||||||
/usr/sbin/pppd nodetach \
|
/usr/sbin/pppd nodetach \
|
||||||
plugin pppoatm.so ${VPI:-8}.${VCI:-35} \
|
plugin pppoatm.so ${VPI:-8}.${VCI:-35} \
|
||||||
@ -34,7 +33,7 @@ while :; do
|
|||||||
linkname $type \
|
linkname $type \
|
||||||
user "$USERNAME" \
|
user "$USERNAME" \
|
||||||
password "$PASSWORD" \
|
password "$PASSWORD" \
|
||||||
$MTU \
|
mtu $MTU mru $MTU
|
||||||
$IDLETIME \
|
$IDLETIME \
|
||||||
$REDIAL
|
$REDIAL
|
||||||
|
|
||||||
|
@ -24,7 +24,6 @@ while :; do
|
|||||||
IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
|
IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME}
|
||||||
MTU=$(nvram get ppp_mtu)
|
MTU=$(nvram get ppp_mtu)
|
||||||
MTU=${MTU:-1492}
|
MTU=${MTU:-1492}
|
||||||
MTU=${MTU:+ mtu $MTU mru $MTU}
|
|
||||||
|
|
||||||
ifconfig $IFNAME up
|
ifconfig $IFNAME up
|
||||||
/usr/sbin/pppd nodetach \
|
/usr/sbin/pppd nodetach \
|
||||||
@ -35,7 +34,7 @@ while :; do
|
|||||||
linkname $type \
|
linkname $type \
|
||||||
user "$USERNAME" \
|
user "$USERNAME" \
|
||||||
password "$PASSWORD" \
|
password "$PASSWORD" \
|
||||||
$MTU \
|
mtu $MTU mru $MTU
|
||||||
$IDLETIME \
|
$IDLETIME \
|
||||||
$REDIAL \
|
$REDIAL \
|
||||||
nic-$IFNAME
|
nic-$IFNAME
|
||||||
|
Loading…
Reference in New Issue
Block a user