aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-12-11 15:03:50 +0000
committerJohn Crispin <blogic@openwrt.org>2015-12-11 15:03:50 +0000
commit0065f15e56d28a20eb9d1de1ccb446fe3093b822 (patch)
tree248f77986951a13ffbdbd735d539d126880c1216 /target/linux/ramips/base-files
parente34cb807742d29b34fa9ead3a1e8b1587818de99 (diff)
downloadmaster-187ad058-0065f15e56d28a20eb9d1de1ccb446fe3093b822.tar.gz
master-187ad058-0065f15e56d28a20eb9d1de1ccb446fe3093b822.tar.bz2
master-187ad058-0065f15e56d28a20eb9d1de1ccb446fe3093b822.zip
ramips: Fix support for PBR-M1 board
The PBR-M1 support in current OpenWrt is for the early demo board and it doesn't work on the final board.This patch fixes the support for it. The LED called pbr-m1:buzzer is a beeper connected to GPIO26 so I used gpio-beeper instead of gpio-leds. Signed-off-by: 郭传鈜 <gch981213@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47844 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds6
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh10
2 files changed, 8 insertions, 8 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 8cb0e480cc..40a524405d 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -200,9 +200,9 @@ oy-0001)
set_wifi_led "$board:green:wifi"
;;
pbr-m1)
- ucidef_set_led_netdev "internet" "internet" "$board:green:internet" "eth0.2"
- ucidef_set_led_default "power" "power" "$board:green:power" "1"
- ucidef_set_led_default "sys" "sys" "$board:green:sys" "1"
+ ucidef_set_led_netdev "internet" "internet" "$board:blue:internet" "eth0.2"
+ ucidef_set_led_default "power" "power" "$board:blue:power" "1"
+ ucidef_set_led_default "sys" "sys" "$board:blue:sys" "1"
;;
px-4885)
set_wifi_led "$board:orange:wifi"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index ff5fbf2696..3940a54845 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -83,6 +83,7 @@ get_status_led() {
;;
dap-1350|\
na930|\
+ pbr-m1|\
rt-n13u|\
rt-n14u|\
rt-n15|\
@@ -135,11 +136,6 @@ get_status_led() {
sl-r7205)
status_led="$board:green:wifi"
;;
- pbr-m1|\
- w306r-v20|\
- zbt-wr8305rt)
- status_led="$board:green:sys"
- ;;
psr-680w)
status_led="$board:red:wan"
;;
@@ -165,6 +161,10 @@ get_status_led() {
v22rw-2x2)
status_led="$board:green:security"
;;
+ w306r-v20|\
+ zbt-wr8305rt)
+ status_led="$board:green:sys"
+ ;;
wcr-150gn|\
wl-351)
status_led="$board:amber:power"