ath79: split base-files into subtargets
[openwrt/openwrt.git] / target / linux / ath79 / generic / 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-c59-v2|\
17 tplink,archer-c60-v1|\
18 tplink,archer-c60-v2|\
19 tplink,archer-c7-v4|\
20 tplink,archer-c7-v5)
21 migrate_leds "^$boardonly:=tp-link:"
22 ;;
23 tplink,archer-c7-v2)
24 migrate_leds ":blue:=:green:"
25 ;;
26 tplink,re355-v1)
27 migrate_leds "re355:=tp-link:"
28 ;;
29 tplink,re450-v1)
30 migrate_leds "re450:=tp-link:"
31 ;;
32 wd,mynet-n750)
33 migrate_leds "wd:=mynet-n750:"
34 ;;
35 esac
36
37 migrations_apply system
38
39 exit 0