From 7cfcabc7aedc726071295dcc72bc079e17c33393 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sat, 4 Apr 2015 16:49:56 +0200 Subject: [PATCH] ar71xx/sysmocom/sob-jb02: fix led color - both leds are red --- .../ar71xx/base-files/etc/uci-defaults/01_leds | 16 ++++++++++------ .../ar71xx/files/arch/mips/ath79/mach-sysmocom.c | 4 ++-- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index e5675d7..5923090 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -206,15 +206,19 @@ smart-300) ucidef_set_led_wlan "wlan" "WLAN" "nc-link:green:wlan" "phy0tpt" ;; -sysmocom-sob-ap1 | \ +sysmocom-sob-ap1) + ucidef_set_led_netdev "lan" "LAN" "sysmocom:orange:eth0" "eth0" + ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:orange:wlan" "phy0tpt" + ;; + sysmocom-sob-jb02) - ucidef_set_led_netdev "lan" "LAN" "sysmocom:orange:eth0" "eth0" - ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:orange:wlan" "phy0tpt" - ;; + ucidef_set_led_netdev "lan" "LAN" "sysmocom:red:eth0" "eth0" + ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:red:wlan" "phy0tpt" + ;; sysmocom-sob-ap2) - ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:red:wlan" "phy0tpt" - ;; + ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:red:wlan" "phy0tpt" + ;; tew-712br) ucidef_set_led_netdev "wan" "WAN" "trendnet:green:wan" "eth1" diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c index d7d45e1..8cb6387 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c @@ -55,11 +55,11 @@ static struct gpio_led sysmocom_sob_ap2_leds_gpio[] __initdata = { static struct gpio_led sysmocom_sob_jb02_leds_gpio[] __initdata = { { - .name = "sysmocom:orange:wlan", + .name = "sysmocom:red:wlan", .gpio = SYSMOCOM_GPIO_LED_WLAN, .active_low = 0, }, { - .name = "sysmocom:orange:eth0", + .name = "sysmocom:red:eth0", .gpio = SYSMOCOM_GPIO_LED_ETH0, .active_low = 0, }