openwrt/package
Adrian Schmutzler 365a639f91 base-files: add function to remove devicename from LED labels
Currently, we request LED labels in OpenWrt to follow the scheme

  modelname:color:function

However, specifying the modelname at the beginning is actually
entirely useless for the devices we support in OpenWrt. In patches
subsequent to this one, we will thus remove the modelname from
the label definitions on various targets.

To migrate the existing definitions from older installations,
a migration script needs to be deployed that does

  modelname:color:function -> color:function

e.g.

  dir-789:green:status -> green:status

This patch introduces two functions that do exactly that:
For each entry in /etc/config/system, the routine will check whether
two (or more) colons are present, and then remove everything up to
(and including) the first colon.

For now, this will be applied unconditionally, i.e. if the function
is called for a device, all labels will be cut like this.

However, for a future case of mixed three-part and two-part labels,
it should not be too hard to provide a function argument with
exceptions to the removal.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-10-02 13:50:50 +02:00
..
base-files base-files: add function to remove devicename from LED labels 2020-10-02 13:50:50 +02:00
boot uboot-rockchip: update NanoPi R2S patches 2020-09-30 00:06:45 +02:00
devel strace: Update to version 5.8 2020-08-31 22:15:26 +02:00
firmware ath10k-firmware: package Wave1 from linux-firmware 2020-09-28 16:23:33 +02:00
kernel mac80211: add support for specifying a per-device scan list 2020-09-29 17:32:26 +02:00
libs openssl: bump to 1.1.1h 2020-09-28 08:49:39 +02:00
network mac80211: add support for specifying a per-device scan list 2020-09-29 17:32:26 +02:00
system refpolicy: fix path to setfiles and checkpolicy 2020-09-30 03:26:12 +01:00
utils policycoreutils: add missing gettext dependency 2020-10-01 04:14:50 +01:00
Makefile build: store SourceDateEpoch in manifest 2020-08-31 11:18:06 +01:00