summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-10-28 06:47:31 +0000
committerJohn Crispin <john@openwrt.org>2013-10-28 06:47:31 +0000
commit43de7c1cfa8b6afd15c226676ec64a0fa765fc6b (patch)
tree55af94ead357c09c685a54f5580a9c2c7dafa010 /target/linux/ramips/base-files
parentc81c814d6a823aa0859200208fb4478428faffe2 (diff)
downloadmtk-20170518-43de7c1cfa8b6afd15c226676ec64a0fa765fc6b.zip
mtk-20170518-43de7c1cfa8b6afd15c226676ec64a0fa765fc6b.tar.gz
mtk-20170518-43de7c1cfa8b6afd15c226676ec64a0fa765fc6b.tar.bz2
ralink: add support for 2 new mt7620 boards made by buffalo
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38550
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/diag.sh6
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/usb/10-motion1
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/01_leds5
-rwxr-xr-xtarget/linux/ramips/base-files/etc/uci-defaults/02_network5
-rwxr-xr-xtarget/linux/ramips/base-files/lib/ramips.sh6
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 bfe53e1..c6e6004 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 0000000..557698b
--- /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 7f9ca40..44951d8 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 034d6e6..9026700 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 589b208..0315074 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"
;;