treewide: remove execute bit and shebang from board.d files
[openwrt/staging/rmilecki.git] / target / linux / ramips / rt3883 / base-files / etc / board.d / 02_network
old mode 100755 (executable)
new mode 100644 (file)
index 27c15ee..519afe6
@@ -1,4 +1,3 @@
-#!/bin/sh
 
 . /lib/functions.sh
 . /lib/functions/uci-defaults.sh
@@ -25,6 +24,13 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "1:lan" "2:lan" "3:lan" "4:lan" "0:wan" "9@eth0"
                ;;
+       engenius,esr600h|\
+       sitecom,wlr-6000|\
+       trendnet,tew-691gr|\
+       trendnet,tew-692gr)
+               ucidef_add_switch "switch0" \
+                       "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
+               ;;
        loewe,wmdr-143n|\
        omnima,hpm)
                ucidef_set_interface_lan "eth0"
@@ -33,15 +39,6 @@ ramips_setup_interfaces()
                ucidef_add_switch "switch0" \
                        "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "9@eth0"
                ;;
-       sitecom,wlr-6000|\
-       trendnet,tew-691gr|\
-       trendnet,tew-692gr)
-               ucidef_add_switch "switch0" \
-                       "1:lan" "2:lan" "3:lan" "4:lan" "5:wan" "0@eth0"
-               ;;
-       *)
-               ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2"
-               ;;
        esac
 }
 
@@ -69,8 +66,15 @@ ramips_setup_macs()
        edimax,br-6475nd)
                wan_mac=$(mtd_get_mac_binary devdata 0x7)
                ;;
+       engenius,esr600h)
+               wan_mac=$(mtd_get_mac_ascii u-boot-env wanaddr)
+               lan_mac=$(macaddr_add "$wan_mac" 1)
+               label_mac=$wan_mac
+               ;;
        samsung,cy-swr1100)
-               lan_mac=$(mtd_get_mac_ascii factory lanmac)
+               lan_mac=$(mtd_get_mac_ascii nvram lanmac)
+               wan_mac=$(mtd_get_mac_ascii nvram wanmac)
+               label_mac=$wan_mac
                ;;
        sitecom,wlr-6000)
                wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x8004)" 2)