brcm47xx: fix switch port labels for Asus WL500GP V2
authorMichael Heimpold <mhei@heimpold.de>
Fri, 20 Sep 2019 22:15:24 +0000 (00:15 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Tue, 15 Oct 2019 18:22:42 +0000 (20:22 +0200)
The switch port naming in LuCI does not fit the physical numbers
on the front of this device. Since this is confusing, fix it.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
target/linux/brcm47xx/base-files/etc/board.d/01_network

index 8428b43dec4f473d82ec151bf5c7029cd606c0af..6fbd76fc10c0393d3ac7299c3d76eedf2f8f1150 100755 (executable)
@@ -143,8 +143,12 @@ configure_by_model() {
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ;;
 
+       "Asus WL500GP V2")
+               ucidef_add_switch "switch0" \
+                       "0:lan:4" "1:lan:3" "2:lan:2" "3:lan:1" "4:wan" "5@eth0"
+               ;;
+
        "Asus RT-N12"* | \
-       "Asus WL500GP V2" | \
        "Buffalo WHR-G125" | \
        "D-Link DIR-330" | \
        "Motorola WR850G" | \