01_leds 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013-2014 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/brcm63xx.sh
  7. case "$(brcm63xx_board_name)" in
  8. a4001n1)
  9. ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
  10. ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
  11. ;;
  12. a4001n)
  13. ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1"
  14. ;;
  15. dgnd3700v1_dgnd3800b)
  16. ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1"
  17. ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2"
  18. ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0"
  19. ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1"
  20. ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1"
  21. ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2"
  22. ;;
  23. fast2704v2)
  24. ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1"
  25. ;;
  26. hg553)
  27. ucidef_set_led_netdev "lan" "LAN" "HW553:blue:lan" "eth0"
  28. ucidef_set_led_usbdev "usb1" "USB1" "HW553:red:hspa" "1-1"
  29. ucidef_set_led_usbdev "usb2" "USB2" "HW553:blue:hspa" "1-2"
  30. ;;
  31. hg556a_*)
  32. ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0"
  33. ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2"
  34. ;;
  35. hg655b)
  36. ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2"
  37. ;;
  38. homehub2a)
  39. ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1"
  40. ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0"
  41. ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
  42. ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
  43. ;;
  44. esac
  45. ucidef_commit_leds
  46. exit 0