10_indicate_failsafe 352 B

1234567891011121314151617
  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. echo "- failsafe -"
  10. preinit_net_echo "Entering Failsafe!\n"
  11. indicate_failsafe_led
  12. }
  13. boot_hook_add failsafe indicate_failsafe