X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/2fde9985573f0e2582561ad261e2cde77c1a0403..8b51e5d9fa18bc0eeb695dcad8ae1a7428149a51:/openwrt/package/ppp/files/ifup.pppoe diff --git a/openwrt/package/ppp/files/ifup.pppoe b/openwrt/package/ppp/files/ifup.pppoe index 6bac6a6d1..dbf58c380 100644 --- a/openwrt/package/ppp/files/ifup.pppoe +++ b/openwrt/package/ppp/files/ifup.pppoe @@ -1,6 +1,8 @@ #!/bin/sh [ $# = 0 ] && { echo " $0 "; exit; } . /etc/functions.sh +. /etc/nvram.overrides +[ -e /etc/config/network ] && . /etc/config/network type=$1 [ "$(nvram get ${type}_proto)" = "pppoe" ] || { @@ -21,6 +23,7 @@ while :; do IDLETIME=$(nvram get ppp_idletime) IDLETIME=${IDLETIME:+lcp-echo-failure $IDLETIME} MTU=$(nvram get ppp_mtu) + MTU=${MTU:-1492} MTU=${MTU:+ mtu $MTU mru $MTU} ifconfig $IFNAME up