2
0

10_indicate_failsafe 399 B

123456789101112131415161718
  1. #!/bin/sh
  2. # Copyright (C) 2006 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. # commands for emitting messages to network in failsafe mode
  5. indicate_failsafe_led () {
  6. set_state failsafe
  7. }
  8. indicate_failsafe() {
  9. [ "$pi_preinit_no_failsafe" = "y" ] && return
  10. echo "- failsafe -"
  11. preinit_net_echo "Entering Failsafe!\n"
  12. indicate_failsafe_led
  13. }
  14. boot_hook_add failsafe indicate_failsafe