[ramips] add profile for tenda w150m board
[openwrt.git] / target / linux / ramips / base-files / lib / preinit / 06_set_iface_mac
index 6d3dd58..7824e2b 100644 (file)
@@ -10,7 +10,9 @@ preinit_set_mac_address() {
 
        case $(ramips_board_name) in
        3g-6200n |\
+       3g-6200nl |\
        3g300m | \
+       w150m | \
        mzk-w300nh2 |\
        wl-330n |\
        wl-330n3g)
@@ -19,6 +21,7 @@ preinit_set_mac_address() {
                ;;
        bc2 |\
        broadway |\
+       d105 |\
        dir-620-a1 |\
        esr-9753 |\
        freestation5 |\
@@ -27,7 +30,7 @@ preinit_set_mac_address() {
        rt-n56u |\
        sl-r7205)
                mac=$(mtd_get_mac_binary factory 4)
-               mac=$(maccalc or "$mac" "02:00:00:00:00:00")
+               mac=$(macaddr_setbit_la "$mac")
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
        dir-300-b1 |\
@@ -38,7 +41,7 @@ preinit_set_mac_address() {
                 ;;
        dir-645)
                mac=$(mtd_get_mac_ascii nvram lanmac)
-               mac=$(maccalc or "$mac" "02:00:00:00:00:00")
+               mac=$(macaddr_setbit_la "$mac")
                ifconfig eth0 hw ether $mac 2>/dev/null
                ;;
        dap-1350)