01_leds 599 B

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