ramips: add support for the GnuBee Personal Cloud One
[openwrt/openwrt.git] / target / linux / ramips / base-files / etc / board.d / 02_network
index f6129b527add0e33315298656b71c977a6ce8013..ee769b5a0f32e0c4fae6305952f7fda5f3c7f7bf 100755 (executable)
@@ -1,7 +1,6 @@
 #!/bin/sh
 
 . /lib/functions.sh
-. /lib/ramips.sh
 . /lib/functions/uci-defaults.sh
 . /lib/functions/system.sh
 
@@ -84,6 +83,7 @@ ramips_setup_interfaces()
        hc5661a|\
        hc5962|\
        hlk-rm04|\
+       k2p|\
        kn|\
        kn_rc|\
        mac1200rv2|\
@@ -157,7 +157,6 @@ ramips_setup_interfaces()
        c20i|\
        c50|\
        dir-645|\
-       dir-860l-b1|\
        f5d8235-v2|\
        gl-mt300a|\
        gl-mt300n|\
@@ -183,6 +182,14 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "6@eth0"
                ;;
+       dir-860l-b1)
+               ucidef_add_switch "switch0" \
+                       "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1" "0:wan" "6@eth0"
+               ;;
+       gb-pc1)
+               ucidef_add_switch "switch0" \
+                       "0:lan" "4:lan" "6@eth0"
+               ;;
        gl-mt300n-v2)
                ucidef_add_switch "switch0" \
                        "1:lan" "0:wan" "6@eth0"
@@ -270,6 +277,10 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                "1:lan:2" "2:lan:1" "4:wan" "6@eth0"
                ;;
+       re350-v1)
+               ucidef_add_switch "switch0" \
+                       "0:lan" "6@eth0"
+               ;;
        re6500)
                ucidef_add_switch "switch0" \
                        "0:lan:1" "1:lan:2" "2:lan:3" "3:lan:4" "6@eth0"
@@ -494,7 +505,7 @@ ramips_setup_macs()
 }
 
 board_config_update
-board=$(ramips_board_name)
+board=$(board_name)
 ramips_setup_interfaces $board
 ramips_setup_macs $board
 board_config_flush