ramips: mac address detection for Fonera 2.0n
authorVasilis Tsiligiannis <acinonyx@openwrt.gr>
Sat, 23 Jun 2012 13:58:29 +0000 (13:58 +0000)
committerVasilis Tsiligiannis <acinonyx@openwrt.gr>
Sat, 23 Jun 2012 13:58:29 +0000 (13:58 +0000)
Detect and apply MAC address of a Fonera 2.0n (ramips)

Signed-off-by: Malte Forkel <malte.forkel@berlin.de>
Signed-off-by: Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
SVN-Revision: 32490

target/linux/ramips/base-files/etc/uci-defaults/network
target/linux/ramips/base-files/lib/preinit/06_set_iface_mac

index bbf03344370e648bc2a60eede67acbf0489cef73..cc3f21215102ef51f5d775d822b83b7a5d32197b 100755 (executable)
@@ -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)
index 69d1b8cb20274af1f316c4b7a11c462c9c2a2329..a605b22f8cc433259775e2ccefc270ceeb001650 100644 (file)
@@ -26,6 +26,7 @@ preinit_set_mac_address() {
                 ifconfig eth0 hw ether $mac 2>/dev/null
                 ;;
        all0256n |\
+       fonera20n |\
        hw550-3g |\
        nbg-419n |\
        omni-emb |\