aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files/etc
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-07-14 07:40:22 +0000
committerJohn Crispin <blogic@openwrt.org>2015-07-14 07:40:22 +0000
commitd355b7fb2b588ace09420dd41e035eb1a4c7bae5 (patch)
tree2300d64f362dd2bd2a03724b5df5eae4b8b0225e /target/linux/ramips/base-files/etc
parentfdf77beb25c4f32b562824a90f0a0263b78be17a (diff)
downloadmaster-187ad058-d355b7fb2b588ace09420dd41e035eb1a4c7bae5.tar.gz
master-187ad058-d355b7fb2b588ace09420dd41e035eb1a4c7bae5.tar.bz2
master-187ad058-d355b7fb2b588ace09420dd41e035eb1a4c7bae5.zip
ramips: adding support for OY-0001 Wireless Router
Adding support for OY-0001 Wireless Router. OY-0001 is a wireless router made by oyewifi.com. Below is the details: MT7620A, 128MB DDR2, 16MB FLASH, SD Slot, USB 2.0, 4 x LAN + 1 x WAN. Signed-off-by: Tom Deng <2579131212@qq.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46349 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds4
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/02_network6
2 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/board.d/01_leds b/target/linux/ramips/base-files/etc/board.d/01_leds
index 545bd7090a..fe3a79d14d 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -238,6 +238,10 @@ case $board in
set_wifi_led "zbtlink:blue:air"
set_usb_led "zbtlink:blue:usb"
;;
+ oy-0001)
+ ucidef_set_led_default "power" "power" "oy:green:power" "1"
+ set_wifi_led "oy:green:wifi"
+ ;;
wr8305rt)
ucidef_set_led_default "power" "power" "wr8305rt:sys" "1"
set_usb_led "wr8305rt:usb"
diff --git a/target/linux/ramips/base-files/etc/board.d/02_network b/target/linux/ramips/base-files/etc/board.d/02_network
index bc1fc0191c..9fb3535149 100755
--- a/target/linux/ramips/base-files/etc/board.d/02_network
+++ b/target/linux/ramips/base-files/etc/board.d/02_network
@@ -139,6 +139,7 @@ ramips_setup_interfaces()
mzk-750dhp | \
whr-300hp2 | \
whr-600d | \
+ oy-0001 | \
wsr-600 | \
wsr-1166 | \
wt1520 | \
@@ -283,6 +284,11 @@ ramips_setup_macs()
wan_mac=$(mtd_get_mac_binary devdata 7)
;;
+ oy-0001)
+ lan_mac=$(mtd_get_mac_binary factory 40)
+ wan_mac=$(mtd_get_mac_binary factory 46)
+ ;;
+
w306r-v20)
lan_mac=$(cat /sys/class/net/eth0/address)
wan_mac=$(macaddr_add "$lan_mac" 5)