[OpenWrt-Devel] [PATCH 4/4] ath79: engenius epg5000: add leds migration case

Tomasz Maciej Nowak tomek_n at o2.pl
Wed Mar 13 12:44:24 EDT 2019


The wireless LEDs names have changed between ar71xx and ath79 targets
from epg5000:blue:wlan2-g and epg5000:blue:wlan-5g to epg5000:blue:wlan2g
and epg5000:blue:wlan5g. Add this case to migration script to
automatically translate those names if defined in system configuration.

Signed-off-by: Tomasz Maciej Nowak <tomek_n at o2.pl>
---
 .../linux/ath79/base-files/etc/uci-defaults/04_led_migration  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration b/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
index a17702ac10..c73c9daddf 100644
--- a/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
+++ b/target/linux/ath79/base-files/etc/uci-defaults/04_led_migration
@@ -44,8 +44,8 @@ migrate_leds()
 board=$(board_name)
 
 case "$board" in
-*)
-	return 0
+engenius,epg5000)
+	migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
 	;;
 esac
 
-- 
2.21.0


_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list