aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt76x8/base-files/etc
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/mt76x8/base-files/etc')
-rwxr-xr-xtarget/linux/ramips/mt76x8/base-files/etc/init.d/bootcount11
-rw-r--r--target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration22
2 files changed, 33 insertions, 0 deletions
diff --git a/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount b/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
new file mode 100755
index 0000000000..0d64deb9e0
--- /dev/null
+++ b/target/linux/ramips/mt76x8/base-files/etc/init.d/bootcount
@@ -0,0 +1,11 @@
+#!/bin/sh /etc/rc.common
+
+START=99
+
+boot() {
+ case $(board_name) in
+ xiaomi,miwifi-nano)
+ fw_setenv flag_boot_success 1
+ ;;
+ esac
+}
diff --git a/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration b/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration
new file mode 100644
index 0000000000..3f9f615c10
--- /dev/null
+++ b/target/linux/ramips/mt76x8/base-files/etc/uci-defaults/04_led_migration
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+
+case "$board" in
+tplink,archer-c20-v4)
+ migrate_leds "^c20-v4:=archer-c20-v4:"
+ ;;
+tplink,archer-c50-v3)
+ migrate_leds "^c50-v3:=archer-c50-v3:"
+ ;;
+tplink,archer-c50-v4)
+ migrate_leds "^c50-v4:=archer-c50-v4:"
+ ;;
+esac
+
+migrations_apply system
+
+exit 0