projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add e2fsprogs package
[openwrt.git]
/
openwrt
/
package
/
ppp
/
files
/
ifup.pppoe
diff --git
a/openwrt/package/ppp/files/ifup.pppoe
b/openwrt/package/ppp/files/ifup.pppoe
index
6bac6a6
..
dbf58c3
100644
(file)
--- a/
openwrt/package/ppp/files/ifup.pppoe
+++ b/
openwrt/package/ppp/files/ifup.pppoe
@@
-1,6
+1,8
@@
#!/bin/sh
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
#!/bin/sh
[ $# = 0 ] && { echo " $0 <group>"; exit; }
. /etc/functions.sh
+. /etc/nvram.overrides
+[ -e /etc/config/network ] && . /etc/config/network
type=$1
[ "$(nvram get ${type}_proto)" = "pppoe" ] || {
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)
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
MTU=${MTU:+ mtu $MTU mru $MTU}
ifconfig $IFNAME up
This page took
0.027314 seconds
and
4
git commands to generate.