ar71xx: add support for GL.iNet GL-USB150
[openwrt/openwrt.git] / target / linux / ar71xx / base-files / etc / board.d / 02_network
index 7f2012855c29aab7e430e7932a35da1915af8605..5fa8c2f4c8c4b578c2bf06132c142d487244245d 100755 (executable)
@@ -5,7 +5,6 @@
 
 . /lib/functions/system.sh
 . /lib/functions/uci-defaults.sh
-. /lib/ar71xx.sh
 
 ar71xx_setup_interfaces()
 {
@@ -64,6 +63,7 @@ ar71xx_setup_interfaces()
        antminer-s1|\
        antminer-s3|\
        antrouter-r1|\
+       ap121f|\
        aw-nr580|\
        bullet-m|\
        c-55|\
@@ -75,6 +75,7 @@ ar71xx_setup_interfaces()
        eap7660d|\
        el-mini|\
        fritz300e|\
+       gl-usb150|\
        hiveap-121|\
        loco-m-xw|\
        mr12|\
@@ -147,8 +148,6 @@ ar71xx_setup_interfaces()
        om2p-hsv4|\
        pb42|\
        pb44|\
-       rb-750-r2|\
-       rb-750up-r2|\
        rb-951ui-2hnd|\
        rb-951ui-2nd|\
        rb-952ui-5ac2nd|\
@@ -160,6 +159,12 @@ ar71xx_setup_interfaces()
        wrtnode2q)
                ucidef_set_interfaces_lan_wan "eth1" "eth0"
                ;;
+       rb-750-r2|\
+       rb-750up-r2)
+               ucidef_set_interfaces_lan_wan "eth1.1" "eth0"
+               ucidef_add_switch "switch0" \
+                       "0@eth1" "1:lan:4" "2:lan:3" "3:lan:2" "4:lan:1"
+               ;;
        all0258n|\
        all0315n|\
        dlan-hotspot|\
@@ -545,7 +550,7 @@ ar71xx_setup_macs()
 }
 
 board_config_update
-board=$(ar71xx_board_name)
+board=$(board_name)
 ar71xx_setup_interfaces $board
 ar71xx_setup_macs $board
 board_config_flush