2e1be7b0e344038e044447410c03e6278e3bcca0
[openwrt/openwrt.git] / target / linux / ath79 / base-files / etc / uci-defaults / 04_led_migration
1 #!/bin/sh
2
3 . /lib/functions.sh
4 . /lib/functions/migrations.sh
5
6 board=$(board_name)
7 boardonly="${board##*,}"
8
9 case "$board" in
10 engenius,epg5000)
11 migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
12 ;;
13 tplink,archer-c25-v1|\
14 tplink,archer-c58-v1|\
15 tplink,archer-c59-v1|\
16 tplink,archer-c7-v4|\
17 tplink,archer-c7-v5)
18 migrate_leds "^$boardonly:=tp-link:"
19 ;;
20 tplink,archer-c7-v2|\
21 tplink,tl-wdr3600-v1|\
22 tplink,tl-wdr4300-v1|\
23 tplink,tl-wdr4300-v1-il)
24 migrate_leds ":blue:=:green:"
25 ;;
26 wd,mynet-n750)
27 migrate_leds "wd:=mynet-n750:"
28 ;;
29 esac
30
31 migrations_apply system
32
33 exit 0