projects
/
oweals
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
92a563f
)
fixup
author
Mike Baker
<mbm@openwrt.org>
Mon, 12 Jul 2004 04:05:56 +0000
(
04:05
+0000)
committer
Mike Baker
<mbm@openwrt.org>
Mon, 12 Jul 2004 04:05:56 +0000
(
04:05
+0000)
SVN-Revision: 90
root/etc/functions.sh
patch
|
blob
|
history
diff --git
a/root/etc/functions.sh
b/root/etc/functions.sh
index 2b85e15cbe053f277b675642694b2a2d5f6b5c1a..9db0e86b1e8352f85860a0c37794ee8d2cf7fd8e 100755
(executable)
--- a/
root/etc/functions.sh
+++ b/
root/etc/functions.sh
@@
-89,10
+89,12
@@
ifup () (
if_password=$(nvram_get ppp_passwd)
if_redial=$(nvram_get ppp_redialperiod)
if_idletime=$(nvram_get ppp_idletime)
if_password=$(nvram_get ppp_passwd)
if_redial=$(nvram_get ppp_redialperiod)
if_idletime=$(nvram_get ppp_idletime)
+ if_mtu=$(nvram_get wan_mtu)
$DEBUG ifconfig $if 0.0.0.0 up
$DEBUG ifconfig $if 0.0.0.0 up
- $DEBUG /sbin/pppoecd $if -u $if_username -p $if_password -i 0 -I $if_redial -T $if_idletime -k
+ $DEBUG /sbin/pppoecd $if -u $if_username -p $if_password -i 0 -I $if_redial -T $if_idletim
+ e -t $if_mtu -k
;;
*)
echo "### WARNING $if: $if_proto is not supported"
;;
*)
echo "### WARNING $if: $if_proto is not supported"
@@
-105,6
+107,6
@@
ifdown () (
debug "### ifdown $type ###"
if=$(nvram_get ${type}_ifname)
if_valid $if || return
debug "### ifdown $type ###"
if=$(nvram_get ${type}_ifname)
if_valid $if || return
- kill $(cat /var/run/${if}.pid 2>-)2>-
+ kill $(cat /var/run/${if}.pid 2>-)
2>-
$DEBUG ifconfig $if down
)
$DEBUG ifconfig $if down
)