aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7620
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/mt7620')
-rw-r--r--target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration49
1 files changed, 49 insertions, 0 deletions
diff --git a/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration
new file mode 100644
index 0000000000..ba1a0df7e6
--- /dev/null
+++ b/target/linux/ramips/mt7620/base-files/etc/uci-defaults/04_led_migration
@@ -0,0 +1,49 @@
+#!/bin/sh
+
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+
+case "$board" in
+lenovo,newifi-y1)
+ migrate_leds "^y1:=newifi-y1:"
+ ;;
+lenovo,newifi-y1s)
+ migrate_leds "^y1s:=newifi-y1s:"
+ ;;
+netgear,wn3000rp-v3)
+ migrate_leds "^wn3000rpv3:=wn3000rp-v3:"
+ ;;
+tplink,archer-c2-v1)
+ migrate_leds "^c2-v1:=archer-c2-v1:"
+ ;;
+tplink,archer-c20-v1)
+ migrate_leds "^c20-v1:=archer-c20-v1:"
+ ;;
+tplink,archer-c20i)
+ migrate_leds "^c20i:=archer-c20i:"
+ ;;
+tplink,archer-c50-v1)
+ migrate_leds "^c50:=archer-c50-v1:"
+ ;;
+tplink,archer-mr200)
+ migrate_leds "^mr200:=archer-mr200:"
+ ;;
+youku,yk1)
+ migrate_leds "^youku-yk1:=yk1:"
+ ;;
+zyxel,keenetic-omni)
+ migrate_leds "^kn_rc:=keenetic-omni:"
+ ;;
+zyxel,keenetic-omni-ii)
+ migrate_leds "^kn_rc:=keenetic-omni-ii:"
+ ;;
+zyxel,keenetic-viva)
+ migrate_leds "^kng_rc:=keenetic-viva:"
+ ;;
+esac
+
+migrations_apply system
+
+exit 0