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 66eb6b98a4eda2fc0dfab0aa9e3b1237c9b3a7bd..90c327a2ed43d056e509f687eb97ff222fffa31a 100644 (file)
@@ -28,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
                ;;
@@ -36,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
 }