diag.sh 282 B

123456789101112131415161718192021
  1. #!/bin/sh
  2. # Copyright (C) 2007-2013 OpenWrt.org
  3. . /lib/functions/leds.sh
  4. set_state() {
  5. case "$1" in
  6. preinit)
  7. led_off "mtx1:green"
  8. led_on "mtx1:red"
  9. ;;
  10. failsafe)
  11. led_on "mtx1:green"
  12. led_on "mtx1:red"
  13. ;;
  14. done)
  15. led_on "mtx1:green"
  16. led_off "mtx1:red"
  17. ;;
  18. esac
  19. }