1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-24 00:56:14 +02:00

Make MTU default to 1492 when ppp_mtu nvram variable is not set

git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@1606 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
nico 2005-08-10 23:27:28 +00:00
parent db99e7aa38
commit 1ec9bfb350

View File

@ -23,6 +23,7 @@ while :; do
IDLETIME=$(nvram get ppp_idletime) IDLETIME=$(nvram get ppp_idletime)
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:+ mtu $MTU mru $MTU} MTU=${MTU:+ mtu $MTU mru $MTU}
ifconfig $IFNAME up ifconfig $IFNAME up