diff options
Diffstat (limited to 'target/linux/ramips/mt7620/base-files/etc')
-rw-r--r-- | target/linux/ramips/mt7620/base-files/etc/board.d/01_leds | 5 | ||||
-rw-r--r-- | target/linux/ramips/mt7620/base-files/etc/board.d/02_network | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds index 8d438538fc..1f53930311 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/01_leds @@ -202,6 +202,11 @@ tplink,archer-mr200) tplink,re200-v1) ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0" ;; +wavlink,wl-wn535k1) + ucidef_set_led_switch "lan1" "lan2" "green:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "lan2" "green:lan2" "switch0" "0x20" + ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x10" + ;; wavlink,wl-wn579x3) ucidef_set_led_switch "lan" "lan" "blue:lan" "switch0" "0x20" ucidef_set_led_switch "wan" "wan" "blue:wan" "switch0" "0x10" diff --git a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network index ea8394ec59..47bd02f3d1 100644 --- a/target/linux/ramips/mt7620/base-files/etc/board.d/02_network +++ b/target/linux/ramips/mt7620/base-files/etc/board.d/02_network @@ -219,6 +219,10 @@ ramips_setup_interfaces() "0:lan" "1:lan" "2:lan" "3:lan" "6t@eth0" ucidef_set_interface_wan "usb0" ;; + wavlink,wl-wn535k1) + ucidef_add_switch "switch0" \ + "2:lan" "5:lan" "4:wan" "6@eth0" + ;; wavlink,wl-wn579x3) ucidef_add_switch "switch0" \ "5:lan" "4:wan" "6@eth0" @@ -367,6 +371,10 @@ ramips_setup_macs() tplink,archer-mr200) wan_mac=$(macaddr_add "$(mtd_get_mac_binary rom 0xf100)" 1) ;; + wavlink,wl-wn535k1) + wan_mac=$(mtd_get_mac_binary factory 0x2e) + label_mac=$(mtd_get_mac_binary factory 0x8004) + ;; zbtlink,zbt-we1026-5g-16m) label_mac=$(mtd_get_mac_binary factory 0x4) ;; |