mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-24 16:28:46 +00:00
Add the reg and color property to each channel node. This update is to accommodate the multicolor framework. Refer to: <https://lore.kernel.org/all/20200622185919.2131-9-dmurphy@ti.com> <https://lore.kernel.org/all/20210818070209.1540451-1-michal.vokac@ysoft.com> Note: There is only a single extremely bright RGB-LED. The RGB-color channels (i.e.: blue-0, blue-1 and blue-2) are running in parallel to increase the current delivery beyond what a single PWM-output on the LED controller could do. BugLink: https://github.com/openwrt/openwrt/issues/9851 Reported-By: Thomas Bøge <thomas@boegenielsen.dk> Tested-By: Thomas Bøge <thomas@boegenielsen.dk> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
26 lines
402 B
Plaintext
26 lines
402 B
Plaintext
. /lib/functions/migrations.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case "$board" in
|
|
asus,map-ac2200)
|
|
migrate_leds ':chan=-'
|
|
;;
|
|
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
|