forked from Ivasoft/openwrt
lantiq: remove model name from LED labels
Like in the previous patches for other targets, this will remove the "devicename" from LED labels in lantiq. The devicename is removed in DTS files and 01_leds, consolidation of definitions into DTSI files is done where (easily) possible, and migration scripts are updated. The DTS/DTSI consolidation is only performed for files-5.4. For lantiq,easy98020 some LED definitions have the form "devicename:function" without the color, so we need to implement explicit migration for that one. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
@@ -32,36 +32,34 @@ board=$(board_name)
|
||||
|
||||
case "$board" in
|
||||
arcadyan,arv7519rw22)
|
||||
ucidef_set_led_netdev "lan" "lan" "arv7519rw22:green:lan" "eth0.1"
|
||||
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0.1"
|
||||
;;
|
||||
arcadyan,vgv7510kw22-nor|\
|
||||
arcadyan,vgv7510kw22-brn)
|
||||
ucidef_set_led_wlan "wifi" "wifi" "vgv7510kw22:green:wlan" "phy0radio"
|
||||
arcadyan,vgv7510kw22-brn|\
|
||||
zyxel,p-2812hnu-f1|\
|
||||
zyxel,p-2812hnu-f3)
|
||||
ucidef_set_led_wlan "wifi" "wifi" "green:wlan" "phy0radio"
|
||||
;;
|
||||
arcadyan,vgv7519-nor|\
|
||||
arcadyan,vgv7519-brn)
|
||||
ucidef_set_led_wlan "wifi" "wifi" "vgv7519:green:wireless" "phy0radio"
|
||||
ucidef_set_led_wlan "wifi" "wifi" "green:wireless" "phy0radio"
|
||||
;;
|
||||
avm,fritz3370-rev2-hynix|\
|
||||
avm,fritz3370-rev2-micron)
|
||||
ucidef_set_led_switch "lan" "LAN" "fritz3370:green:lan" "switch0" "0x17"
|
||||
ucidef_set_led_switch "lan" "LAN" "green:lan" "switch0" "0x17"
|
||||
;;
|
||||
bt,homehub-v5a)
|
||||
ucidef_set_led_default "dimmed" "dimmed" "dimmed" "0"
|
||||
;;
|
||||
buffalo,wbmr-300hpd)
|
||||
ucidef_set_led_switch "lan1" "LAN1" "wbmr300:green:lan1" "switch0" "0x08"
|
||||
ucidef_set_led_switch "lan2" "LAN2" "wbmr300:green:lan2" "switch0" "0x04"
|
||||
ucidef_set_led_switch "wan" "WAN" "wbmr300:green:wan" "switch0" "0x10"
|
||||
ucidef_set_led_switch "lan3" "LAN3" "wbmr300:green:lan3" "switch0" "0x20"
|
||||
ucidef_set_led_default "router" "router" "wbmr300:green:router" "1"
|
||||
ucidef_set_led_switch "lan1" "LAN1" "green:lan1" "switch0" "0x08"
|
||||
ucidef_set_led_switch "lan2" "LAN2" "green:lan2" "switch0" "0x04"
|
||||
ucidef_set_led_switch "wan" "WAN" "green:wan" "switch0" "0x10"
|
||||
ucidef_set_led_switch "lan3" "LAN3" "green:lan3" "switch0" "0x20"
|
||||
ucidef_set_led_default "router" "router" "green:router" "1"
|
||||
;;
|
||||
netgear,dm200)
|
||||
ucidef_set_led_netdev "lan" "lan" "dm200:green:lan" "eth0"
|
||||
;;
|
||||
zyxel,p-2812hnu-f1|\
|
||||
zyxel,p-2812hnu-f3)
|
||||
ucidef_set_led_wlan "wifi" "wifi" "p2812hnufx:green:wlan" "phy0radio"
|
||||
ucidef_set_led_netdev "lan" "lan" "green:lan" "eth0"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -27,6 +27,8 @@ bt,homehub-v5a)
|
||||
;;
|
||||
esac
|
||||
|
||||
remove_devicename_leds
|
||||
|
||||
migrations_apply system
|
||||
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user