ramips: improve Xiaomi Mi Router 3G support
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index 6f05259467eb295c73f6658e2dd2a6f1e994dd08..a1a82d62ed7bc964ff3a657e586a622556ab8924 100755 (executable)
@@ -124,7 +124,7 @@ ramips_setup_interfaces()
                ;;
        mir3g)
                ucidef_add_switch "switch0" \
-                       "1:wan" "2:lan:2" "3:lan:1" "6@eth0"
+                       "2:lan:2" "3:lan:1" "1:wan" "6t@eth0"
                ;;
        psg1218b)
                ucidef_add_switch "switch0" \
@@ -184,6 +184,7 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
+       c20|\
        c50)
                ucidef_add_switch "switch0" \
                        "1:lan:3" "2:lan:4" "3:lan:1" "4:lan:2" "0:wan" "6@eth0"
@@ -428,7 +429,7 @@ ramips_setup_macs()
                wan_mac=$(macaddr_add "$lan_mac" 1)
                ;;
        mir3g)
-               lan_mac=$(mtd_get_mac_binary Factory e006)
+               lan_mac=$(mtd_get_mac_binary Factory 0xe006)
                ;;
        miwifi-mini)
                wan_mac=$(cat /sys/class/net/eth0/address)