aboutsummaryrefslogtreecommitdiff
path: root/target/linux/ath79/nand/base-files/etc/init.d/boot-leds
blob: f2a1cc13b8b10a39ef4461995528c5547904b120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh /etc/rc.common
# SPDX-License-Identifier: GPL-2.0-only

START=11

# To support LEDs on boards that have drivers loaded after rootfs, let's
# re-run diag.sh AFTER kmodloader has finished, but before boot is complete.
# This is useful for userspace LED drivers, LEDs that rely on i2c, etc.

boot() {
    case $(board_name) in
    netgear,pgzng1)
        . /etc/diag.sh
        set_led_state preinit_regular
        ;;
    esac
}