2010-01-25 17:11:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
|
|
|
# commands for emitting messages to network in failsafe mode
|
|
|
|
|
|
|
|
indicate_failsafe_led () {
|
2013-12-09 11:30:14 +00:00
|
|
|
set_state failsafe
|
2010-01-25 17:11:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
indicate_failsafe() {
|
2016-04-19 08:07:35 +00:00
|
|
|
[ "$pi_preinit_no_failsafe" = "y" ] && return
|
2013-12-09 11:30:14 +00:00
|
|
|
echo "- failsafe -"
|
|
|
|
preinit_net_echo "Entering Failsafe!\n"
|
|
|
|
indicate_failsafe_led
|
2010-01-25 17:11:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
boot_hook_add failsafe indicate_failsafe
|