diff options
author | John Crispin <blogic@openwrt.org> | 2013-10-28 06:47:31 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2013-10-28 06:47:31 +0000 |
commit | 19ea6e3ca15ba0ca16563d4de8d38de8f0618857 (patch) | |
tree | ab3bf9ff784a5a5d3a8f146347efd4d1a606054e /target/linux/ramips/base-files | |
parent | 7eccc12250a6afb542f87f1803d650f7e1a585c6 (diff) | |
download | master-187ad058-19ea6e3ca15ba0ca16563d4de8d38de8f0618857.tar.gz master-187ad058-19ea6e3ca15ba0ca16563d4de8d38de8f0618857.tar.bz2 master-187ad058-19ea6e3ca15ba0ca16563d4de8d38de8f0618857.zip |
ralink: add support for 2 new mt7620 boards made by buffalo
Signed-off-by: John Crispin <blogic@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38550 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
5 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh index bfe53e1d9e..c6e6004245 100755 --- a/target/linux/ramips/base-files/etc/diag.sh +++ b/target/linux/ramips/base-files/etc/diag.sh @@ -120,6 +120,12 @@ get_status_led() { whr-g300n) status_led="whr-g300n:green:router" ;; + whr-300hp2) + status_led="buffalo:green:status" + ;; + whr-600d) + status_led="buffalo:green:status" + ;; wli-tx4-ag300n) status_led="buffalo:blue:power" ;; diff --git a/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion b/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion new file mode 100644 index 0000000000..557698b1a2 --- /dev/null +++ b/target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion @@ -0,0 +1 @@ +[ "$ACTION" == "motion" ] && logger webcam motion event diff --git a/target/linux/ramips/base-files/etc/uci-defaults/01_leds b/target/linux/ramips/base-files/etc/uci-defaults/01_leds index 7f9ca40722..44951d8e23 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ramips/base-files/etc/uci-defaults/01_leds @@ -145,6 +145,11 @@ case $board in ucidef_set_led_netdev "eth" "Network" "asus:white:back" "eth0" set_wifi_led "asus:blue:wifi" ;; + whr-300hp2 |\ + whr-600d) + ucidef_set_led_default "power" "power" "buffalo:green:power" "1" + ucidef_set_led_default "router" "router" "buffalo:green:router" "1" + ;; esac ucidef_commit_leds diff --git a/target/linux/ramips/base-files/etc/uci-defaults/02_network b/target/linux/ramips/base-files/etc/uci-defaults/02_network index 034d6e61e1..9026700ac9 100755 --- a/target/linux/ramips/base-files/etc/uci-defaults/02_network +++ b/target/linux/ramips/base-files/etc/uci-defaults/02_network @@ -146,6 +146,11 @@ ramips_setup_interfaces() ucidef_set_interface_lan "eth0" ;; + whr-300hp2 |\ + whr-600d) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ;; + *) RT3X5X=`cat /proc/cpuinfo | egrep "(RT3.5|RT5350)"` if [ -n "${RT3X5X}" ]; then diff --git a/target/linux/ramips/base-files/lib/ramips.sh b/target/linux/ramips/base-files/lib/ramips.sh index 589b208f36..0315074f10 100755 --- a/target/linux/ramips/base-files/lib/ramips.sh +++ b/target/linux/ramips/base-files/lib/ramips.sh @@ -208,6 +208,12 @@ ramips_board_detect() { *"W502U") name="w502u" ;; + *"WHR-300HP2") + name="whr-300hp2" + ;; + *"WHR-600D") + name="whr-600d" + ;; *"WHR-G300N") name="whr-g300n" ;; |