Changeset 45681


Ignore:
Timestamp:
2015-05-13T15:11:04+02:00 (3 years ago)
Author:
rmilecki
Message:

bcm53xx: fix default network interface on Netgear R8000

It has 3 Ethernet interfaces, each of them connected to separated switch
port. Default NVRAM uses switch port 8 as CPU which is connected to the
3rd interface (eth2).

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

File:
1 edited

Legend:

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

    r45575 r45681  
    88board_config_update 
    99 
     10board=$(cat /proc/device-tree/compatible | tr '\0' '\t' | cut -f 1) 
     11case "$board" in 
     12netgear,r8000) 
     13        ifname=eth2 
     14        ;; 
     15*) 
     16        ifname=eth0 
     17        ;; 
     18esac 
     19 
    1020ucidef_set_interface_loopback 
    11  
    12 ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 
     21ucidef_set_interfaces_lan_wan "$ifname.1" "$ifname.2" 
    1322ucidef_add_switch "switch0" "1" "1" 
    1423 
Note: See TracChangeset for help on using the changeset viewer.