ath79: use board name in LED migrations
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / uci-defaults / 04_led_migration
index d9c61f8103487f34c28128e81c079331f1d5b7b4..4e4e91c788719fd97f3b3215b5308344711f0722 100644 (file)
@@ -4,13 +4,27 @@
 . /lib/functions/migrations.sh
 
 board=$(board_name)
+boardonly="${board##*,}"
 
 case "$board" in
 engenius,epg5000)
        migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
        ;;
+tplink,archer-c7-v2)
+       migrate_leds ":blue:=:green:"
+       ;;
+tplink,archer-c7-v4|\
 tplink,archer-c7-v5)
-       migrate_leds "archer-c7-v5:=tp-link:"
+       migrate_leds "^$boardonly:=tp-link:"
+       ;;
+tplink,re355-v1)
+       migrate_leds "re355:=tp-link:"
+       ;;
+tplink,re450-v1)
+       migrate_leds "re450:=tp-link:"
+       ;;
+wd,mynet-n750)
+       migrate_leds "wd:=mynet-n750:"
        ;;
 esac