ramips: don't create switch config for VIXMINI
authorDavid Bauer <mail@david-bauer.net>
Sat, 18 Jul 2020 20:12:19 +0000 (22:12 +0200)
committerDavid Bauer <mail@david-bauer.net>
Sat, 18 Jul 2020 20:12:19 +0000 (22:12 +0200)
Don't create UCI switch config for the GL.iNet microuter-N300 and
VIXMINI. These devices only have a single LAN port.
Creating the switch config makes usage of VLANs more complicated,
as they would have to be configured on the MAC as well as the "switch".

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/ramips/mt76x8/base-files/etc/board.d/02_network

index e3d18b5fba58ede2553fd2a3071d309c188dd04e..0809109c13309db26a5d61034a2fff66c10358a8 100755 (executable)
@@ -11,6 +11,8 @@ ramips_setup_interfaces()
        case $board in
        alfa-network,awusfree1|\
        d-team,pbr-d1|\
+       glinet,microuter-n300|\
+       glinet,vixmini|\
        mediatek,linkit-smart-7688|\
        onion,omega2p|\
        onion,omega2|\
@@ -57,11 +59,6 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "0:wan" "6@eth0"
                ;;
-       glinet,microuter-n300|\
-       glinet,vixmini)
-               ucidef_add_switch "switch0" \
-                       "0:lan" "6@eth0"
-               ;;
        hilink,hlk-7628n|\
        hiwifi,hc5861b|\
        skylab,skw92a|\