01_leds 455 B

12345678910111213141516171819202122
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/socfpga.sh
  7. board=$(socfpga_board_name)
  8. case "$board" in
  9. "socfpga-sockit")
  10. ucidef_set_led_netdev "lan" "LAN" "hps:blue:led0" "eth0"
  11. ucidef_set_led_mmc "mmc" "MMC" "hps:blue:led1" "mmc0"
  12. ucidef_set_led_default "health" "health" "hps:blue:led2" "1"
  13. ucidef_set_led_default "fault" "fault" "hps:blue:led3" "1"
  14. ;;
  15. esac
  16. ucidef_commit_leds
  17. exit 0