generic: 6.1, 6.6: remove patch which breaks WAN on MT7621
[openwrt/openwrt.git] / target / linux / ath79 / generic / base-files / etc / uci-defaults / 04_led_migration
1 . /lib/functions.sh
2 . /lib/functions/migrations.sh
3
4 board=$(board_name)
5 boardonly="${board##*,}"
6
7 case "$board" in
8 arduino,yun)
9 migrate_leds "arduino:=yun:"
10 ;;
11 dlink,dap-1330-a1)
12 migrate_leds ":red:power=:red:status" \
13 ":red:wifi=:red:rssilow" \
14 ":green:wifi=:green:rssimediumlow" \
15 ":green:signal1=:green:rssimediumhigh" \
16 ":green:signal2=:green:rssihigh"
17 ;;
18 engenius,epg5000)
19 migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
20 ;;
21 glinet,gl-mifi)
22 migrate_leds ":net=:3g4g"
23 ;;
24 tplink,archer-c25-v1|\
25 tplink,archer-c58-v1|\
26 tplink,archer-c59-v1|\
27 tplink,archer-c59-v2|\
28 tplink,archer-c60-v1|\
29 tplink,archer-c60-v2|\
30 tplink,archer-c7-v4|\
31 tplink,archer-c7-v5|\
32 tplink,tl-wr902ac-v1)
33 migrate_leds "^$boardonly:=tp-link:"
34 ;;
35 tplink,archer-c7-v2|\
36 tplink,tl-wdr3600-v1|\
37 tplink,tl-wdr4300-v1|\
38 tplink,tl-wdr4300-v1-il|\
39 tplink,tl-wdr4310-v1)
40 migrate_leds ":blue:=:green:"
41 ;;
42 tplink,re355-v1)
43 migrate_leds "re355:=tp-link:"
44 ;;
45 tplink,re450-v1)
46 migrate_leds "re450:=tp-link:"
47 ;;
48 wd,mynet-n750)
49 migrate_leds "wd:=mynet-n750:"
50 ;;
51 esac
52
53 migrations_apply system
54
55 exit 0