openwrt/package/base-files/files/etc
Piotr Dymacz a422b171ac base-files: diag: restore default trigger for 'boot' LED
For devices without a dedicated 'diag' LED, we use sometimes one of
other LEDs for indicating at least 'boot', 'failsafe' and 'upgrade'
stages. In some cases, at the same time these LEDs have defined default
triggers in DTS using 'linux,default-trigger' property. Current 'diag'
setup removes the trigger and turns off 'boot' LED after bootup.

One of the examples of such device is TP-Link TL-WR841N v14 (ramips)
which uses 'wlan' LED with defined 'linux,default-trigger' for 'diag':

aliases {
        led-boot = &led_wlan;
        led-failsafe = &led_wlan;
        led-upgrade = &led_wlan;
};

[...]

led_wlan: wlan {
        label = "tl-wr841n-v14:green:wlan";
        gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
        linux,default-trigger = "phy0tpt";
};

This patch extends 'diag.sh' and 'leds.sh' scripts to make sure default
trigger defined in DTS is restored for 'diag' LED which isn't used for
indicating 'running' stage.

Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
2020-02-24 23:27:50 +01:00
..
board.d
hotplug.d/net
init.d brcm47xx: rename target to bcm47xx 2020-02-14 14:10:51 +01:00
iproute2
rc.button base-files: add reboot only button handler 2019-05-30 11:55:49 +02:00
sysctl.d
uci-defaults base-files: remove shebang from uci-defaults files 2019-11-13 12:50:57 +01:00
banner
banner.failsafe
device_info
diag.sh base-files: diag: restore default trigger for 'boot' LED 2020-02-24 23:27:50 +01:00
ethers
fstab
group
hosts
inittab
openwrt_release
openwrt_version
os-release
passwd
preinit
profile
protocols
rc.common base-files: rc.common: fix missing EXTRA_HELP texts 2019-11-14 22:53:31 +01:00
rc.local
services
shadow
shells
sysctl.conf
sysupgrade.conf