01_leds 625 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. #
  3. # Copyright (C) 2012-2015 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. . /lib/mcs814x.sh
  7. board_config_update
  8. board=$(mcs814x_board_name)
  9. case "$board" in
  10. dlan-usb-extender)
  11. ucidef_set_led_usbdev "usb" "USB" "dlan-usb-extender:green:usb" "2-1"
  12. ;;
  13. rbt-832)
  14. ucidef_set_led_usbdev "usb1" "USB1" "rbt-832:red:usb0" "1-1"
  15. ucidef_set_led_usbdev "usb2" "USB2" "rbt-832:red:usb1" "1-2"
  16. ucidef_set_led_usbdev "usb3" "USB3" "rbt-832:red:usb2" "1-3"
  17. ucidef_set_led_usbdev "usb4" "USB4" "rbt-832:red:usb3" "1-4"
  18. ucidef_set_led_netdev "eth" "eth" "rbt-832:red:ethernet" "eth0"
  19. ;;
  20. esac
  21. board_config_flush
  22. exit 0