01_leds 605 B

1234567891011121314151617181920212223242526
  1. #!/bin/sh
  2. #
  3. # Copyright © 2017 OpenWrt.org
  4. #
  5. . /lib/functions/uci-defaults.sh
  6. board_config_update
  7. board=$(cat /tmp/sysinfo/board_name) 2>/dev/null
  8. case "$board" in
  9. pc-engines-apu2)
  10. ucidef_set_led_netdev "wan" "WAN" "apu2:green:led3" "eth0"
  11. ucidef_set_led_netdev "lan" "LAN" "apu2:green:led2" "br-lan"
  12. ucidef_set_led_default "diag" "DIAG" "apu2:green:power" "1"
  13. ;;
  14. traverse-technologies-geos)
  15. ucidef_set_led_netdev "lan" "LAN" "geos:1" "br-lan" "tx rx"
  16. ucidef_set_led_netdev "wlan" "WiFi" "geos:2" "phy0tpt"
  17. ucidef_set_led_default "diag" "DIAG" "geos:3" "1"
  18. ;;
  19. esac
  20. board_config_flush
  21. exit 0