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@kresin.me>
openwrt-18.06
Mathias Kresin 2017-02-17 22:16:01 +01:00
parent 044a4eafd5
commit e88b36f4be
1 changed files with 1 additions and 0 deletions

View File

@ -21,6 +21,7 @@ led_usb2="$(lantiq_get_dt_led usb2)"
led_internet="$(lantiq_get_dt_led internet)" led_internet="$(lantiq_get_dt_led internet)"
[ -n "$led_internet" ] && { [ -n "$led_internet" ] && {
interface="nas0" interface="nas0"
lantiq_is_vdsl_system && interface="ptm0"
led_dsl="$(lantiq_get_dt_led dsl)" led_dsl="$(lantiq_get_dt_led dsl)"
[ -n "$led_dsl" ] && { [ -n "$led_dsl" ] && {