ath79: use board name in LED migrations
[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-c7-v2)
14 migrate_leds ":blue:=:green:"
15 ;;
16 tplink,archer-c7-v4|\
17 tplink,archer-c7-v5)
18 migrate_leds "^$boardonly:=tp-link:"
19 ;;
20 tplink,re355-v1)
21 migrate_leds "re355:=tp-link:"
22 ;;
23 tplink,re450-v1)
24 migrate_leds "re450:=tp-link:"
25 ;;
26 wd,mynet-n750)
27 migrate_leds "wd:=mynet-n750:"
28 ;;
29 esac
30
31 migrations_apply system
32
33 exit 0