Changeset 38091


Ignore:
Timestamp:
2013-09-20T18:59:44+02:00 (4 years ago)
Author:
juhosg
Message:

ar71xx: set proper wan mac during initial configuration on dir-825-c1

The goal is to set the WAN MAC address to the one on the
sticker on the bottom of the unit. Currently it is not
used at all. But some users expect the WAN interface to
have the MAC address that is written on the sticker.

Signed-off-by: Sebastian Kemper <sebastian_ml@…>
Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/base-files/etc/uci-defaults/02_network

    r38074 r38091  
    195195        ;; 
    196196 
    197 dir-825-c1 |\ 
     197dir-825-c1) 
     198        local mac 
     199        ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" 
     200        ucidef_add_switch "switch0" "1" "1" 
     201        ucidef_add_switch_vlan "switch0" "1" "0t 1 2 3 4" 
     202        ucidef_add_switch_vlan "switch0" "2" "0t 5" 
     203        mac=$(mtd_get_mac_ascii nvram "^wan_mac") 
     204        [ -n "$mac" ] && ucidef_set_interface_macaddr "wan" "$mac" 
     205        ;; 
     206 
    198207dir-835-a1 |\ 
    199208wndr4300) 
Note: See TracChangeset for help on using the changeset viewer.