aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/mt76x8')
-rwxr-xr-xtarget/linux/ramips/mt76x8/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/mt76x8/base-files/etc/board.d/02_network5
2 files changed, 9 insertions, 0 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
index bcbc2ed1e6..47b73e01a2 100755
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/01_leds
@@ -25,6 +25,10 @@ cudy,wr1000)
ucidef_set_led_switch "lan1" "lan1" "blue:lan1" "switch0" "0x08"
ucidef_set_led_switch "lan2" "lan2" "blue:lan2" "switch0" "0x04"
;;
+elecom,wrc-1167fs)
+ ucidef_set_led_switch "lan" "lan" "green:lan" "switch0" "0x8"
+ ucidef_set_led_switch "internet" "internet" "green:internet" "switch0" "0x10"
+ ;;
glinet,gl-mt300n-v2)
ucidef_set_led_netdev "wifi_led" "wifi" "red:wlan" "wlan0"
ucidef_set_led_switch "wan" "wan" "green:wan" "switch0" "0x1"
diff --git a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
index 8bbcbb2190..b741b4f9b4 100755
--- a/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/mt76x8/base-files/etc/board.d/02_network
@@ -46,6 +46,7 @@ ramips_setup_interfaces()
"0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0"
;;
buffalo,wcr-1166ds|\
+ elecom,wrc-1167fs|\
wavlink,wl-wn577a2)
ucidef_add_switch "switch0" \
"3:lan" "4:wan" "6@eth0"
@@ -181,6 +182,10 @@ ramips_setup_macs()
zyxel,keenetic-extra-ii)
wan_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" 1)
;;
+ elecom,wrc-1167fs)
+ wan_mac=$(mtd_get_mac_binary factory 0x22)
+ label_mac=$wan_mac
+ ;;
hilink,hlk-7628n)
lan_mac=$(macaddr_setbit_la "$(cat /sys/class/net/eth0/address)")
wan_mac=$(macaddr_add "$lan_mac" 1)