ath79: migrate LED paths of TL-WDR4300 board
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / uci-defaults / 04_led_migration
index fe4a9c3cc06df51e1ec4988cd9347ed59b3e9cd9..2e1be7b0e344038e044447410c03e6278e3bcca0 100644 (file)
@@ -4,13 +4,24 @@
 . /lib/functions/migrations.sh
 
 board=$(board_name)
+boardonly="${board##*,}"
 
 case "$board" in
 engenius,epg5000)
        migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
        ;;
+tplink,archer-c25-v1|\
+tplink,archer-c58-v1|\
+tplink,archer-c59-v1|\
+tplink,archer-c7-v4|\
 tplink,archer-c7-v5)
-       migrate_leds "archer-c7-v5:=tp-link:"
+       migrate_leds "^$boardonly:=tp-link:"
+       ;;
+tplink,archer-c7-v2|\
+tplink,tl-wdr3600-v1|\
+tplink,tl-wdr4300-v1|\
+tplink,tl-wdr4300-v1-il)
+       migrate_leds ":blue:=:green:"
        ;;
 wd,mynet-n750)
        migrate_leds "wd:=mynet-n750:"