diff options
| author | Mike Baker <mbm@openwrt.org> | 2004-07-12 04:05:56 +0000 |
|---|---|---|
| committer | Mike Baker <mbm@openwrt.org> | 2004-07-12 04:05:56 +0000 |
| commit | 5c2ef9a0c91e5628a80f8f0f729da0c1c11af1ae (patch) | |
| tree | b5700fd8b31a18c37ce9a6cf144a9afb5eda0f79 /root | |
| parent | c89c8902016b1b1f03691e4d88ed25aeb63da1a5 (diff) | |
| download | upstream-5c2ef9a0c91e5628a80f8f0f729da0c1c11af1ae.tar.gz upstream-5c2ef9a0c91e5628a80f8f0f729da0c1c11af1ae.tar.bz2 upstream-5c2ef9a0c91e5628a80f8f0f729da0c1c11af1ae.zip | |
fixup
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@90 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root')
| -rwxr-xr-x | root/etc/functions.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/root/etc/functions.sh b/root/etc/functions.sh index 2b85e15cbe0..9db0e86b1e8 100755 --- 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_mtu=$(nvram_get wan_mtu) $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" @@ -105,6 +107,6 @@ ifdown () ( 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 ) |
