ipq807x: merge duplicate network configurations in 02_network
authorINAGAKI Hiroshi <musashino.open@gmail.com>
Sun, 22 Jan 2023 07:35:04 +0000 (16:35 +0900)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 12 Feb 2023 00:18:39 +0000 (01:18 +0100)
Merge network configurations in 02_network of Dynalink DL-WRX36 and
Xiaomi AX9000.

Reviewed-by: Robert Marko <robimarko@gmail.com>
Signed-off-by: INAGAKI Hiroshi <musashino.open@gmail.com>
target/linux/ipq807x/base-files/etc/board.d/02_network

index de237e8541f68a988adca9f5eee2996ba3d3821a..a8d9d5d6cf753fffd60b210ebf996afb8285b173 100644 (file)
@@ -11,7 +11,8 @@ ipq807x_setup_interfaces()
        local board="$1"
 
        case "$board" in
-       dynalink,dl-wrx36)
+       dynalink,dl-wrx36|\
+       xiaomi,ax9000)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
                ;;
        edgecore,eap102)
@@ -27,9 +28,6 @@ ipq807x_setup_interfaces()
        xiaomi,ax3600)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3" "wan"
                ;;
-       xiaomi,ax9000)
-               ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4" "wan"
-               ;;
        zyxel,nbg7815)
                ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 10g" "wan"
                ;;