Changeset 47692


Ignore:
Timestamp:
2015-12-02T19:51:12+01:00 (2 years ago)
Author:
jow
Message:

bcm53xx: switch to ucidef_add_switch_ports()

Signed-off-by: Jo-Philipp Wich <jow@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/bcm53xx/base-files/etc/board.d/02_network

    r47281 r47692  
    3535case "$board" in 
    3636netgear,r8000) 
    37         ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" 
    38         ucidef_add_switch_vlan "switch0" "2" "4 5t" 
     37        ucidef_add_switch_ports "switch0" \ 
     38                "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@$ifname" 
    3939        board_config_flush 
    4040        exit 0 
     
    5151if echo "$vlan1ports" | egrep -q "^1 2 3 4 5" && \ 
    5252   echo "$vlan2ports" | egrep -q "^0 5"; then 
    53         ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 5t" 
    54         ucidef_add_switch_vlan "switch0" "2" "0 5t" 
     53        ucidef_add_switch_ports "switch0" \ 
     54                "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5t@$ifname" 
    5555elif echo "$vlan1ports" | egrep -q "^1 2 3 5 7" && \ 
    5656     echo "$vlan2ports" | egrep -q "^0 7"; then 
    57         ucidef_add_switch_vlan "switch0" "1" "1 2 3 5 7t" 
    58         ucidef_add_switch_vlan "switch0" "2" "0 7t" 
     57        ucidef_add_switch_ports "switch0" \ 
     58                "1:lan" "2:lan" "3:lan" "5:lan" "0:wan" "7t@$ifname" 
    5959elif echo "$vlan1ports" | egrep -q "^0 1 2 3 5 7 8" && \ 
    6060     echo "$vlan2ports" | egrep -q "^4 8"; then 
    61         ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5 7 8t" 
    62         ucidef_add_switch_vlan "switch0" "2" "4 8t" 
     61        ucidef_add_switch_ports "switch0" \ 
     62                "0:lan" "1:lan" "2:lan" "3:lan" "5:lan" "7:lan" "4:wan" "8t@$ifname" 
    6363else 
    64         ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 5t" 
    65         ucidef_add_switch_vlan "switch0" "2" "4 5t" 
     64        ucidef_add_switch_ports "switch0" \ 
     65                "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5t@$ifname" 
    6666fi 
    6767 
Note: See TracChangeset for help on using the changeset viewer.