01_leds 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2013-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/brcm63xx.sh
  7. board_config_update
  8. case "$(brcm63xx_board_name)" in
  9. a4001n1)
  10. ucidef_set_led_netdev "lan" "LAN" "A4001N1:green:eth" "eth0"
  11. ucidef_set_led_usbdev "usb" "USB" "A4001N1:green:3g" "1-1"
  12. ;;
  13. a4001n)
  14. ucidef_set_led_usbdev "usb" "USB" "A4001N:green:usb" "1-1"
  15. ;;
  16. dgnd3700v1_dgnd3800b)
  17. ucidef_set_led_netdev "lan" "LAN" "DGND3700v1_3800B:green:lan" "eth0.1"
  18. ucidef_set_led_netdev "wan" "WAN" "DGND3700v1_3800B:green:inet" "eth0.2"
  19. ucidef_set_led_netdev "wlan0" "WIFI2G" "DGND3700v1_3800B:green:wifi2g" "wlan0"
  20. ucidef_set_led_netdev "wlan1" "WIFI5G" "DGND3700v1_3800B:blue:wifi5g" "wlan1"
  21. ucidef_set_led_usbdev "usb1" "USB1" "DGND3700v1_3800B:green:usb-back" "1-1"
  22. ucidef_set_led_usbdev "usb2" "USB2" "DGND3700v1_3800B:green:usb-front" "1-2"
  23. ;;
  24. evg2000)
  25. ucidef_set_led_netdev "lan" "LAN" "EVG2000:green:lan" "eth0"
  26. ucidef_set_led_netdev "wan" "WAN" "EVG2000:green:wan" "eth1"
  27. ucidef_set_led_netdev "wlan0" "WIFI" "EVG2000:green:wireless" "wlan0"
  28. ucidef_set_led_usbdev "usb1" "USB1" "EVG2000:green:voip1" "1-1"
  29. ucidef_set_led_usbdev "usb2" "USB2" "EVG2000:green:voip2" "1-2"
  30. ;;
  31. fast2704n)
  32. ucidef_set_led_netdev "wan" "WAN" "F@ST2704N:green:inet" "eth0.2"
  33. ;;
  34. fast2704v2)
  35. ucidef_set_led_usbdev "usb" "USB" "F@ST2704V2:green:usb" "1-1"
  36. ;;
  37. hg553)
  38. ucidef_set_led_netdev "lan" "LAN" "HW553:blue:lan" "eth0"
  39. ucidef_set_led_usbdev "usb1" "USB1" "HW553:red:hspa" "1-1"
  40. ucidef_set_led_usbdev "usb2" "USB2" "HW553:blue:hspa" "1-2"
  41. ;;
  42. hg556a_*)
  43. ucidef_set_led_netdev "lan" "LAN" "HW556:red:dsl" "eth0"
  44. ucidef_set_led_usbdev "usb" "USB" "HW556:red:hspa" "1-2"
  45. ;;
  46. hg622)
  47. ucidef_set_led_usbdev "usb" "USB" "HG622:green:usb" "1-2"
  48. ;;
  49. hg655b)
  50. ucidef_set_led_usbdev "usb" "USB" "HW65x:green:usb" "1-2"
  51. ;;
  52. homehub2a)
  53. ucidef_set_led_netdev "lan" "LAN" "HOMEHUB2A:blue:broadband" "eth0.1"
  54. ucidef_set_led_netdev "wlan0" "WIFI" "HOMEHUB2A:green:wireless" "wlan0"
  55. ucidef_set_led_usbdev "usb1" "USB1" "HOMEHUB2A:blue:phone" "1-1"
  56. ucidef_set_led_usbdev "usb2" "USB2" "HOMEHUB2A:green:phone" "2-1"
  57. ;;
  58. livebox1)
  59. ucidef_set_led_netdev "lan" "LAN" "Livebox1:red:traffic" "eth0"
  60. ucidef_set_led_netdev "wan" "WAN" "Livebox1:red:adsl" "eth1"
  61. ucidef_set_led_netdev "wlan0" "WIFI" "Livebox1:red:wifi" "wlan0"
  62. ;;
  63. r5010un_v2)
  64. ucidef_set_led_usbdev "usb" "USB" "R5010UNv2:green:usb" "1-1"
  65. ;;
  66. esac
  67. board_config_flush
  68. exit 0