01_led 346 B

1234567891011121314151617181920
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. . /lib/functions/uci-defaults.sh
  5. board_config_update
  6. board=$(board_name)
  7. case "$board" in
  8. traverse,ten64)
  9. ucidef_set_led_netdev "sfp1" "SFP 1" "ten64:green:sfp1:down" "eth8" "link tx rx"
  10. ucidef_set_led_netdev "sfp2" "SFP 2" "ten64:green:sfp2:up" "eth9" "link tx rx"
  11. ;;
  12. esac
  13. board_config_flush
  14. exit 0