a291bf8c7f9e4a78e758f18a8c5c77598869003e
[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 migrate_leds ":blue:=:green:"
22 ;;
23 wd,mynet-n750)
24 migrate_leds "wd:=mynet-n750:"
25 ;;
26 esac
27
28 migrations_apply system
29
30 exit 0