summaryrefslogtreecommitdiff
path: root/target/linux/ramips/base-files
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2016-06-30 15:18:03 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2016-06-30 17:12:38 +0200
commit103ed00cfb370236c3e96e427d5feb643a8d7c8e (patch)
tree1e41c04135a82162d5d2f3ce9b027e7fb48543df /target/linux/ramips/base-files
parentfa9811814a97fbd0d01cce5e7faf955e7e2c407c (diff)
downloadmtk-20170518-103ed00cfb370236c3e96e427d5feb643a8d7c8e.zip
mtk-20170518-103ed00cfb370236c3e96e427d5feb643a8d7c8e.tar.gz
mtk-20170518-103ed00cfb370236c3e96e427d5feb643a8d7c8e.tar.bz2
ramips: add button support and make LEDs known to userspace for DIR-860L B1
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net> Reviewed-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'target/linux/ramips/base-files')
-rwxr-xr-xtarget/linux/ramips/base-files/etc/board.d/01_leds3
-rw-r--r--target/linux/ramips/base-files/etc/diag.sh1
2 files changed, 4 insertions, 0 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 460253c..0e30ba0 100755
--- a/target/linux/ramips/base-files/etc/board.d/01_leds
+++ b/target/linux/ramips/base-files/etc/board.d/01_leds
@@ -136,6 +136,9 @@ mzk-750dhp|\
mzk-dp150n)
ucidef_set_led_default "power" "power" "$board:green:power" "1"
;;
+dir-860l-b1)
+ ucidef_set_led_netdev "wan" "wan" "$board:green:net" "eth0.2"
+ ;;
ex2700)
ucidef_set_led_default "power_r" "POWER (red)" "$board:red:power" "0"
set_wifi_led "$board:green:router"
diff --git a/target/linux/ramips/base-files/etc/diag.sh b/target/linux/ramips/base-files/etc/diag.sh
index 0c5abb2..e9d623d 100644
--- a/target/linux/ramips/base-files/etc/diag.sh
+++ b/target/linux/ramips/base-files/etc/diag.sh
@@ -19,6 +19,7 @@ get_status_led() {
asl26555|\
br-6425|\
br-6475nd|\
+ dir-860l-b1|\
e1700|\
fonera20n|\
mzk-750dhp|\