Root/package/base-files/files/lib/preinit/10_indicate_failsafe

1#!/bin/sh
2# Copyright (C) 2006 OpenWrt.org
3# Copyright (C) 2010 Vertical Communications
4
5# commands for emitting messages to network in failsafe mode
6
7indicate_failsafe_led () {
8    set_state failsafe
9}
10
11indicate_failsafe() {
12    echo "- failsafe -"
13    preinit_net_echo "Entering Failsafe!\n"
14    indicate_failsafe_led
15}
16
17boot_hook_add failsafe indicate_failsafe
18
19

Archive Download this file



interactive