From 99a635edd1d4d34e9bfa3cf0c090616841d7f4b8 Mon Sep 17 00:00:00 2001 From: acinonyx Date: Sat, 23 Jun 2012 13:58:29 +0000 Subject: ramips: mac address detection for Fonera 2.0n Detect and apply MAC address of a Fonera 2.0n (ramips) Signed-off-by: Malte Forkel Signed-off-by: Vasilis Tsiligiannis git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32490 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ramips/base-files/etc/uci-defaults/network | 5 +++++ target/linux/ramips/base-files/lib/preinit/06_set_iface_mac | 1 + 2 files changed, 6 insertions(+) (limited to 'target/linux') diff --git a/target/linux/ramips/base-files/etc/uci-defaults/network b/target/linux/ramips/base-files/etc/uci-defaults/network index bbf0334437..cc3f212151 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/network +++ b/target/linux/ramips/base-files/etc/uci-defaults/network @@ -107,6 +107,11 @@ ramips_setup_macs() wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 5) ;; + fonera20n) + lan_mac=$(ramips_get_mac_binary factory 40) + wan_mac=$(/usr/sbin/maccalc add "$lan_mac" 1) + ;; + dir-300-b1 |\ dir-300-b2 |\ dir-600-b1) diff --git a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac index 69d1b8cb20..a605b22f8c 100644 --- a/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac +++ b/target/linux/ramips/base-files/lib/preinit/06_set_iface_mac @@ -26,6 +26,7 @@ preinit_set_mac_address() { ifconfig eth0 hw ether $mac 2>/dev/null ;; all0256n |\ + fonera20n |\ hw550-3g |\ nbg-419n |\ omni-emb |\ -- cgit v1.2.3