- use color, function, function-enumerator properties. - removes the label properties from LED nodes. - add panic-indicator to the blue power/status LED. Note: yes this brings the combined LAN/"switch" LED sort of back, though I fully admit, it's a bit jank. Do you know a better option? then please tell/make a PR! Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
29 lines
488 B
Plaintext
29 lines
488 B
Plaintext
. /lib/functions/migrations.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
asus,map-ac2200)
|
|
migrate_leds ':chan=-'
|
|
;;
|
|
asus,rt-ac58u)
|
|
migrate_leds ":status=:power" ":wlan2G=:wlan-2" ":wlan5G=:wlan-5"
|
|
;;
|
|
engenius,emr3500)
|
|
migrate_leds "emr3500:="
|
|
;;
|
|
engenius,ens620ext|\
|
|
zyxel,nbg6617)
|
|
migrate_leds ":wlan2G=:wlan2g" ":wlan5G=:wlan5g"
|
|
;;
|
|
netgear,wac510)
|
|
migrate_leds ":wlan2g=:wlan-0" ":wlan5g=:wlan-1" ":act=:activity"
|
|
;;
|
|
esac
|
|
|
|
remove_devicename_leds
|
|
|
|
migrations_apply system
|
|
|
|
exit 0
|