aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-12-11 15:03:50 +0000
committerJohn Crispin <john@openwrt.org>2015-12-11 15:03:50 +0000
commit6cbb1be464941591c567d707a423d4aaea496f1d (patch)
treed6cedcdad008b8bb33d286711a2fea886e99f9a7 /target/linux/ramips/base-files
parentabd11be13cd9bc8f3cbb5cfa6b458eb3f420d6c0 (diff)
downloadupstream-6cbb1be464941591c567d707a423d4aaea496f1d.tar.gz
upstream-6cbb1be464941591c567d707a423d4aaea496f1d.tar.bz2
upstream-6cbb1be464941591c567d707a423d4aaea496f1d.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> SVN-Revision: 47844
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"