1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 08:51:09 +02:00
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@90 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
mbm 2004-07-12 04:05:56 +00:00
parent 7935eda946
commit 933aa2ac1a

View File

@ -89,10 +89,12 @@ ifup () (
if_password=$(nvram_get ppp_passwd) if_password=$(nvram_get ppp_passwd)
if_redial=$(nvram_get ppp_redialperiod) if_redial=$(nvram_get ppp_redialperiod)
if_idletime=$(nvram_get ppp_idletime) 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 ###" debug "### ifdown $type ###"
if=$(nvram_get ${type}_ifname) if=$(nvram_get ${type}_ifname)
if_valid $if || return 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
) )