aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
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 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"
;;