[source] lantiq: set the internet led interface according to wan interface

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 18 07:51:50 PST 2017


mkresin pushed a commit to source.git, branch master:
https://git.lede-project.org/e88b36f4be7e583f12fb901298a8a58224bced36

commit e88b36f4be7e583f12fb901298a8a58224bced36
Author: Mathias Kresin <dev at kresin.me>
AuthorDate: Fri Feb 17 22:16:01 2017 +0100

    lantiq: set the internet led interface according to wan interface
    
    Use the nas0 interface for the netdev trigger as default. Use the ptm0
    interface for xRX200 boards to match the default wan interface set in
    02_network.
    
    Signed-off-by: Mathias Kresin <dev at kresin.me>
---
 target/linux/lantiq/base-files/etc/board.d/01_leds | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/lantiq/base-files/etc/board.d/01_leds b/target/linux/lantiq/base-files/etc/board.d/01_leds
index b916438..0698d6c 100755
--- a/target/linux/lantiq/base-files/etc/board.d/01_leds
+++ b/target/linux/lantiq/base-files/etc/board.d/01_leds
@@ -21,6 +21,7 @@ led_usb2="$(lantiq_get_dt_led usb2)"
 led_internet="$(lantiq_get_dt_led internet)"
 [ -n "$led_internet" ] && {
 	interface="nas0"
+	lantiq_is_vdsl_system && interface="ptm0"
 
 	led_dsl="$(lantiq_get_dt_led dsl)"
 	[ -n "$led_dsl" ] && {



More information about the lede-commits mailing list