ath79: add support for Netgear PGZNG1
[openwrt/staging/hauke.git] / target / linux / ath79 / nand / base-files / etc / init.d / boot-leds
1 #!/bin/sh /etc/rc.common
2 # SPDX-License-Identifier: GPL-2.0-only
3
4 START=11
5
6 # To support LEDs on boards that have drivers loaded after rootfs, let's
7 # re-run diag.sh AFTER kmodloader has finished, but before boot is complete.
8 # This is useful for userspace LED drivers, LEDs that rely on i2c, etc.
9
10 boot() {
11 case $(board_name) in
12 netgear,pgzng1)
13 . /etc/diag.sh
14 set_led_state preinit_regular
15 ;;
16 esac
17 }