Changeset 47932


Ignore:
Timestamp:
2015-12-18T16:27:16+01:00 (2 years ago)
Author:
rmilecki
Message:

brcm47xx: fix switch config for devices with WAN port 0

Commit r47866 dropped default values which were handling WAN interface
at port 0. Fix it by handling 2 more cases on NVRAM values.

Signed-off-by: Rafał Miłecki <zajec5@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/brcm47xx/base-files/etc/board.d/01_detect

    r47867 r47932  
    1818                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "8@eth0" 
    1919 
     20        elif [ "${vlan0ports:0:9}" = "1 2 3 4 8" -a "${vlan1ports:0:3}" = "0 8" -a ${cpuport:-0} -eq 8 ] || \ 
     21             [ "${vlan1ports:0:9}" = "1 2 3 4 8" -a "${vlan2ports:0:3}" = "0 8" -a ${cpuport:-0} -eq 8 ] || \ 
     22             [ "${vlan2ports:0:9}" = "1 2 3 4 8" -a "${vlan1ports:0:3}" = "0 8" -a ${cpuport:-0} -eq 8 ]; 
     23        then 
     24                ucidef_add_switch "switch0" \ 
     25                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "8@eth0" 
     26 
    2027        elif [ "${vlan0ports:0:9}" = "0 1 2 3 5" -a "${vlan1ports:0:3}" = "4 5" -a ${cpuport:-0} -eq 5 ] || \ 
    2128                 [ "${vlan1ports:0:9}" = "0 1 2 3 5" -a "${vlan2ports:0:3}" = "4 5" -a ${cpuport:-0} -eq 5 ] || \ 
     
    2431                ucidef_add_switch "switch0" \ 
    2532                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "5@eth0" 
     33 
     34        elif [ "${vlan0ports:0:9}" = "1 2 3 4 5" -a "${vlan1ports:0:3}" = "0 5" -a ${cpuport:-0} -eq 5 ] || \ 
     35             [ "${vlan1ports:0:9}" = "1 2 3 4 5" -a "${vlan2ports:0:3}" = "0 5" -a ${cpuport:-0} -eq 5 ] || \ 
     36             [ "${vlan2ports:0:9}" = "1 2 3 4 5" -a "${vlan1ports:0:3}" = "0 5" -a ${cpuport:-0} -eq 5 ]; 
     37        then 
     38                ucidef_add_switch "switch0" \ 
     39                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "5@eth0" 
    2640 
    2741        else 
Note: See TracChangeset for help on using the changeset viewer.