ramips: rt305x: add add support for the Asus WL-330N board
[librecmc/librecmc.git] / target / linux / ramips / base-files / lib / preinit / 06_set_iface_mac
index 9f5c02446c3aa6b05c42cefb860813dbae4c29b1..90c327a2ed43d056e509f687eb97ff222fffa31a 100644 (file)
@@ -9,9 +9,10 @@ preinit_set_mac_address() {
 
        case $(ramips_board_name) in
        bc2 |\
+       esr-9753 |\
        nw718 |\
        rt-n56u |\
-       esr-9753)
+       sl-r7205)
                mac=$(ramips_get_mac_binary factory 4)
                mac=$(maccalc or "$mac" "02:00:00:00:00:00")
                ifconfig eth0 hw ether $mac 2>/dev/null
@@ -27,7 +28,9 @@ preinit_set_mac_address() {
        nbg-419n |\
        omni-emb |\
        w502u    |\
-       wr6202)
+       wl-330n |\
+       wr6202 |\
+       xdxrn502j)
                mac=$(ramips_get_mac_binary factory 40)
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
@@ -35,6 +38,10 @@ preinit_set_mac_address() {
                mac=$(ramips_get_mac_binary board-nvram 65440)
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
+       rt-n10-plus)
+               mac=$(ramips_get_mac_binary devconf 4)
+               ifconfig eth0 hw ether $mac 2>/dev/null
+               ;;
        esac
 }