treewide: remove execute bit and shebang from board.d files
[openwrt/openwrt.git] / target / linux / ipq40xx / base-files / etc / board.d / 02_network
old mode 100755 (executable)
new mode 100644 (file)
index b9e79c3..31f99fa
@@ -1,4 +1,3 @@
-#!/bin/sh
 #
 # Copyright (c) 2015 The Linux Foundation. All rights reserved.
 # Copyright (c) 2011-2015 OpenWrt.org
@@ -18,7 +17,8 @@ ipq40xx_setup_interfaces()
        engenius,emr3500|\
        engenius,ens620ext|\
        luma,wrtq-329acn|\
-       plasmacloud,pa1200)
+       plasmacloud,pa1200|\
+       plasmacloud,pa2200)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ;;
        aruba,ap-303|\
@@ -83,11 +83,15 @@ ipq40xx_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0u@eth0" "3:lan" "4:lan"
                ;;
+       devolo,magic-2-wifi-next)
+               ucidef_set_interface_lan "eth0 eth1 eth2"
+               ;;
        ezviz,cs-w3-wd1200g-eup)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
                ucidef_add_switch "switch0" \
                        "0u@eth0" "2:lan:3" "3:lan:2" "4:lan:1" "0u@eth1" "5:wan"
                ;;
+       glinet,gl-ap1300 |\
        glinet,gl-b1300 |\
        glinet,gl-s1300)
                ucidef_set_interfaces_lan_wan "eth0" "eth1"
@@ -136,6 +140,10 @@ ipq40xx_setup_macs()
        cilab,meshpoint-one)
                label_mac=$(mtd_get_mac_binary "ART" 0x1006)
                ;;
+       devolo,magic-2-wifi-next)
+               lan_mac=$(mtd_get_mac_ascii APPSBLENV MacAddress0)
+               label_mac=$lan_mac
+               ;;
        dlink,dap-2610)
                lan_mac=$(mtd_get_mac_ascii bdcfg lanmac)
                label_mac=$lan_mac