01_leds 1.4 KB

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