ar71xx: Add support for AirTight Networks C-55
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / lib / preinit / 05_set_iface_mac_ar71xx
index a9f4bf52446db742091784828c53c451c6e204d6..39da3090f81d1bd3c827338e410eac79b77f11dc 100644 (file)
@@ -22,6 +22,10 @@ fetch_mac_from_mtd() {
 
 preinit_set_mac_address() {
        case $(ar71xx_board_name) in
+               c-55)
+                       mac_lan=$(mtd_get_mac_binary art 0)
+                       [ -n "$mac_lan" ] && ifconfig eth0 hw ether "$mac_lan"
+                       ;;
                dir-615-c1)
                        fetch_mac_from_mtd config lan_mac wan_mac
                        echo 1 > /sys/class/leds/dir-615-c1:green:wancpu/brightness
@@ -49,4 +53,3 @@ preinit_set_mac_address() {
 }
 
 boot_hook_add preinit_main preinit_set_mac_address
-