boot-leds 437 B

1234567891011121314151617
  1. #!/bin/sh /etc/rc.common
  2. # SPDX-License-Identifier: GPL-2.0-only
  3. START=11
  4. # To support LEDs on boards that have drivers loaded after rootfs, let's
  5. # re-run diag.sh AFTER kmodloader has finished, but before boot is complete.
  6. # This is useful for userspace LED drivers, LEDs that rely on i2c, etc.
  7. boot() {
  8. case $(board_name) in
  9. netgear,pgzng1)
  10. . /etc/diag.sh
  11. set_led_state preinit_regular
  12. ;;
  13. esac
  14. }