From 68ce59ad6fe38f4bb2ebe4eb4ddccd14cb97eedf Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Tue, 21 Jul 2015 10:58:10 +0200 Subject: [PATCH] ar71xx/sysmocom: migrate led red:eth0 to red:system Before the red:wlan led was used as system led while booting. --- target/linux/ar71xx/base-files/etc/diag.sh | 6 ++++-- target/linux/ar71xx/base-files/etc/uci-defaults/01_leds | 1 - target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c | 4 ++-- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/diag.sh b/target/linux/ar71xx/base-files/etc/diag.sh index c03be21..712b3d9 100755 --- a/target/linux/ar71xx/base-files/etc/diag.sh +++ b/target/linux/ar71xx/base-files/etc/diag.sh @@ -283,10 +283,12 @@ get_status_led() { sysmocom-sob-ap1) status_led="sysmocom:orange:wlan" ;; - sysmocom-sob-ap2 | \ + sysmocom-sob-ap2) + status_led="sysmocom:red:wlan" + ;; sysmocom-sob-jb02 | \ sysmocom-sob-jb02v3) - status_led="sysmocom:red:wlan" + status_led="sysmocom:red:system" ;; esac } 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 a8550bd..fca823d 100755 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -214,7 +214,6 @@ sysmocom-sob-ap1) sysmocom-sob-jb02 | \ sysmocom-sob-jb02v3) - ucidef_set_led_netdev "lan" "LAN" "sysmocom:red:eth0" "eth0" ucidef_set_led_wlan "wlan" "WLAN" "sysmocom:red:wlan" "phy0tpt" ucidef_set_led_default "wlan" "sysmocom:red:wlan" "1" ;; 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 8fbfbee..6a6b8f7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-sysmocom.c @@ -82,7 +82,7 @@ static struct gpio_led sysmocom_sob_jb02_leds_gpio[] __initdata = { .gpio = SYSMOCOM_GPIO_LED_WLAN, .active_low = 0, }, { - .name = "sysmocom:red:eth0", + .name = "sysmocom:red:system", .gpio = SYSMOCOM_GPIO_LED_ETH0, .active_low = 0, } @@ -94,7 +94,7 @@ static struct gpio_led sysmocom_sob_jb02v3_leds_gpio[] __initdata = { .gpio = SYSMOCOM_SOB_JB02V3_GPIO_LED_WLAN, .active_low = 0, }, { - .name = "sysmocom:red:eth0", + .name = "sysmocom:red:system", .gpio = SYSMOCOM_SOB_JB02V3_GPIO_LED_ETH0, .active_low = 0, }