summaryrefslogtreecommitdiff
path: root/root/etc
diff options
context:
space:
mode:
authormbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-03-28 03:26:44 +0000
committermbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73>2004-03-28 03:26:44 +0000
commitcd5d89517d077ee30ce1da5e2a49ff07b4b48be7 (patch)
treedc83c6096bd7ab5ca3b5ded6b8643645347b1b2d /root/etc
parenta0676ec7874fbac88021b7fd044e56bb30829d43 (diff)
add stp, change pppoe command
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'root/etc')
-rwxr-xr-xroot/etc/networking.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/root/etc/networking.sh b/root/etc/networking.sh
index 5242952e93..b857a86c06 100755
--- a/root/etc/networking.sh
+++ b/root/etc/networking.sh
@@ -31,7 +31,6 @@ if_valid () {
echo "# vlan${i}: $hwname $hwaddr => $vif"
$DEBUG ifconfig $vif up
- #$DEBUG vconfig rem vlan${i}
$DEBUG vconfig add $vif $i
}
ifconfig "$1" >/dev/null 2>&1 || [ "${1%[0-9]}" = "br" ]
@@ -57,10 +56,12 @@ configure () {
if_valid $if || return
if [ "${if%[0-9]}" = "br" ]; then
+ stp=$(nvram get ${type}_stp)
$DEBUG ifconfig $if down
$DEBUG brctl delbr $if
$DEBUG brctl addbr $if
$DEBUG brctl setfd $if 0
+ $DEBUG brctl stp $if $stp
if_list=$(nvram_get ${type}_ifnames)
for sif in $if_list; do {
if_valid $sif || continue
@@ -101,7 +102,9 @@ configure () {
$DEBUG ifconfig $if 0.0.0.0 up
- $DEBUG pppd user "$if_username" password "$if_password" defaultroute
+ $DEBUG /sbin/pppoecd $if -u $if_username -p $if_password -i 0 -I $if_redial -T $if_idletime -k
+ sleep 5
+ $DEBUG /sbin/route add default $if
;;
*)
echo "$if: $if_proto is not supported"