ramips: fix number of LAN Ports for Mikrotik RBM33G
authorMartin Schiller <ms@dev.tdt.de>
Wed, 4 Dec 2019 09:43:02 +0000 (10:43 +0100)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sat, 7 Dec 2019 23:20:21 +0000 (00:20 +0100)
The Mikrotik RBM33G has only 2 LAN ports.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
[moved node in 02_network to maintain alphabetic sorting]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/ramips/mt7621/base-files/etc/board.d/02_network

index 420780a1011852ae6a35456bfa643ddef7d49874..bb6e41e06fb42256065866312b038b0172b1fc59 100755 (executable)
@@ -57,7 +57,6 @@ ramips_setup_interfaces()
                ;;
        asus,rt-ac57u|\
        mikrotik,rb750gr3|\
-       mikrotik,rbm33g|\
        ubiquiti,edgerouterx|\
        ubiquiti,edgerouterx-sfp|\
        youhua,wr1200js)
@@ -112,6 +111,10 @@ ramips_setup_interfaces()
                ucidef_add_switch_attr "switch0" "enable" "false"
                ucidef_set_interface_lan "eth0"
                ;;
+       mikrotik,rbm33g)
+               ucidef_add_switch "switch0" \
+                       "1:lan" "2:lan" "0:wan" "6@eth0"
+               ;;
        netgear,ex6150|\
        tplink,re350-v1|\
        tplink,re650-v1)