01_leds 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2014 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/mvebu.sh
  7. board=$(mvebu_board_name)
  8. case "$board" in
  9. armada-385-linksys-caiman)
  10. ucidef_set_led_netdev "wan" "WAN" "pca963x:caiman:white:wan" "eth0"
  11. ucidef_set_led_usbdev "usb2" "USB2" "pca963x:caiman:white:usb2" "1-1"
  12. ucidef_set_led_usbdev "usb3" "USB3" "pca963x:caiman:white:usb3_1" "2-1"
  13. ;;
  14. armada-385-linksys-cobra)
  15. ucidef_set_led_netdev "wan" "WAN" "pca963x:cobra:white:wan" "eth0"
  16. ucidef_set_led_usbdev "usb2" "USB2" "pca963x:cobra:white:usb2" "1-1"
  17. ucidef_set_led_usbdev "usb3" "USB3" "pca963x:cobra:white:usb3_1" "2-1"
  18. ;;
  19. armada-385-linksys-rango)
  20. ucidef_set_led_netdev "wan" "WAN" "pca963x:rango:white:wan" "eth0"
  21. ucidef_set_led_usbdev "usb2" "USB2" "pca963x:rango:white:usb2" "1-1"
  22. ucidef_set_led_usbdev "usb3" "USB3" "pca963x:rango:white:usb3_1" "2-1"
  23. ;;
  24. armada-385-linksys-shelby)
  25. ucidef_set_led_netdev "wan" "WAN" "pca963x:shelby:white:wan" "eth0"
  26. ucidef_set_led_usbdev "usb2" "USB2" "pca963x:shelby:white:usb2" "1-1"
  27. ucidef_set_led_usbdev "usb3" "USB3" "pca963x:shelby:white:usb3_1" "2-1"
  28. ;;
  29. armada-xp-linksys-mamba)
  30. ucidef_set_led_netdev "wan" "WAN" "mamba:white:wan" "eth1"
  31. ucidef_set_led_usbdev "usb2" "USB2" "mamba:white:usb2" "1-1"
  32. ucidef_set_led_usbdev "usb3" "USB3" "mamba:white:usb3_1" "2-2"
  33. ;;
  34. esac
  35. ucidef_commit_leds
  36. exit 0