ramips: TP-link archer A6/C6 device tree updates
[openwrt/staging/wigyori.git] / target / linux / ramips / mt7621 / base-files / etc / uci-defaults / 04_led_migration
diff --git a/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7621/base-files/etc/uci-defaults/04_led_migration
new file mode 100644 (file)
index 0000000..b595ae6
--- /dev/null
@@ -0,0 +1,17 @@
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+
+case "$board" in
+tplink,archer-a6-v3|\
+tplink,archer-c6-v3)
+       migrate_leds ':wifi2g$=:wlan-2' ':wifi5g$=:wlan-5'
+       ;;
+esac
+
+remove_devicename_leds
+
+migrations_apply system
+
+exit 0