aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/tiny
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ath79/tiny')
-rwxr-xr-xtarget/linux/ath79/tiny/base-files/etc/board.d/02_network4
-rw-r--r--target/linux/ath79/tiny/base-files/etc/uci-defaults/04_led_migration18
2 files changed, 21 insertions, 1 deletions
diff --git a/target/linux/ath79/tiny/base-files/etc/board.d/02_network b/target/linux/ath79/tiny/base-files/etc/board.d/02_network
index 5e559363b2..bff17bcce8 100755
--- a/target/linux/ath79/tiny/base-files/etc/board.d/02_network
+++ b/target/linux/ath79/tiny/base-files/etc/board.d/02_network
@@ -43,7 +43,9 @@ ath79_setup_interfaces()
tplink,tl-wa901nd-v2|\
tplink,tl-wa901nd-v4|\
tplink,tl-wa901nd-v5|\
- tplink,tl-wr703n)
+ tplink,tl-wr703n|\
+ tplink,tl-wr802n-v1|\
+ tplink,tl-wr802n-v2)
ucidef_set_interface_lan "eth0"
;;
tplink,tl-mr3220-v1|\
diff --git a/target/linux/ath79/tiny/base-files/etc/uci-defaults/04_led_migration b/target/linux/ath79/tiny/base-files/etc/uci-defaults/04_led_migration
new file mode 100644
index 0000000000..377135f530
--- /dev/null
+++ b/target/linux/ath79/tiny/base-files/etc/uci-defaults/04_led_migration
@@ -0,0 +1,18 @@
+. /lib/functions.sh
+. /lib/functions/migrations.sh
+
+board=$(board_name)
+boardonly="${board##*,}"
+
+case "$board" in
+tplink,tl-wr802n-v1)
+ migrate_leds ":blue:=:green:"
+ ;;
+tplink,tl-wr802n-v2)
+ migrate_leds "^$boardonly:=tp-link:"
+ ;;
+esac
+
+migrations_apply system
+
+exit 0