diff options
Diffstat (limited to 'target/linux/kirkwood/base-files')
-rw-r--r-- | target/linux/kirkwood/base-files/etc/board.d/02_network | 3 | ||||
-rw-r--r-- | target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac | 8 |
2 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/kirkwood/base-files/etc/board.d/02_network b/target/linux/kirkwood/base-files/etc/board.d/02_network index 972ee68fba..ebc70cfc2f 100644 --- a/target/linux/kirkwood/base-files/etc/board.d/02_network +++ b/target/linux/kirkwood/base-files/etc/board.d/02_network @@ -31,6 +31,9 @@ seagate,goflexnet|\ zyxel,nsa310s) ucidef_set_interface_lan "eth0" "dhcp" ;; +endian,4i-edge-200) + ucidef_set_interface_lan "port1 port2 port3 port4 eth1" + ;; linksys,e4200-v2|\ linksys,ea3500|\ linksys,ea4500) diff --git a/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac b/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac index 75e9e886d9..2a52b7962f 100644 --- a/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac +++ b/target/linux/kirkwood/base-files/lib/preinit/07_set_iface_mac @@ -19,6 +19,14 @@ preinit_set_mac_address() { ip link set dev dmz address $(macaddr_add $mac 8) 2>/dev/null ip link set dev dsl address $(macaddr_add $mac 9) 2>/dev/null ;; + endian,4i-edge-200) + mac=$(cat /sys/class/net/eth0/address) + + ip link set dev port1 address $mac 2>/dev/null + ip link set dev port2 address $(macaddr_add $mac 1) 2>/dev/null + ip link set dev port3 address $(macaddr_add $mac 2) 2>/dev/null + ip link set dev port4 address $(macaddr_add $mac 3) 2>/dev/null + ;; esac } |