1
0

40_run_failsafe_hook 307 B

12345678910111213
  1. #!/bin/sh
  2. # Copyright (C) 2006-2010 OpenWrt.org
  3. # Copyright (C) 2010 Vertical Communications
  4. run_failsafe_hook() {
  5. [ "$pi_preinit_no_failsafe" = "y" ] && return
  6. if [ "$FAILSAFE" = "true" ]; then
  7. boot_run_hook failsafe
  8. lock -w /tmp/.failsafe
  9. fi
  10. }
  11. boot_hook_add preinit_main run_failsafe_hook