You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
1.1 KiB
Plaintext
56 lines
1.1 KiB
Plaintext
. /lib/functions.sh
|
|
. /lib/functions/migrations.sh
|
|
|
|
board=$(board_name)
|
|
boardonly="${board##*,}"
|
|
|
|
case "$board" in
|
|
arduino,yun)
|
|
migrate_leds "arduino:=yun:"
|
|
;;
|
|
dlink,dap-1330-a1)
|
|
migrate_leds ":red:power=:red:status" \
|
|
":red:wifi=:red:rssilow" \
|
|
":green:wifi=:green:rssimediumlow" \
|
|
":green:signal1=:green:rssimediumhigh" \
|
|
":green:signal2=:green:rssihigh"
|
|
;;
|
|
engenius,epg5000)
|
|
migrate_leds ":wlan-2g=:wlan2g" ":wlan-5g=:wlan5g"
|
|
;;
|
|
glinet,gl-mifi)
|
|
migrate_leds ":net=:3g4g"
|
|
;;
|
|
tplink,archer-c25-v1|\
|
|
tplink,archer-c58-v1|\
|
|
tplink,archer-c59-v1|\
|
|
tplink,archer-c59-v2|\
|
|
tplink,archer-c60-v1|\
|
|
tplink,archer-c60-v2|\
|
|
tplink,archer-c7-v4|\
|
|
tplink,archer-c7-v5|\
|
|
tplink,tl-wr902ac-v1)
|
|
migrate_leds "^$boardonly:=tp-link:"
|
|
;;
|
|
tplink,archer-c7-v2|\
|
|
tplink,tl-wdr3600-v1|\
|
|
tplink,tl-wdr4300-v1|\
|
|
tplink,tl-wdr4300-v1-il|\
|
|
tplink,tl-wdr4310-v1)
|
|
migrate_leds ":blue:=:green:"
|
|
;;
|
|
tplink,re355-v1)
|
|
migrate_leds "re355:=tp-link:"
|
|
;;
|
|
tplink,re450-v1)
|
|
migrate_leds "re450:=tp-link:"
|
|
;;
|
|
wd,mynet-n750)
|
|
migrate_leds "wd:=mynet-n750:"
|
|
;;
|
|
esac
|
|
|
|
migrations_apply system
|
|
|
|
exit 0
|