mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 00:41:17 +00:00
26 lines
302 B
Bash
26 lines
302 B
Bash
|
#!/bin/sh
|
||
|
#
|
||
|
# Copyright (C) 2015 OpenWrt.org
|
||
|
#
|
||
|
|
||
|
. /lib/functions/leds.sh
|
||
|
|
||
|
set_state() {
|
||
|
status_led="led0"
|
||
|
|
||
|
case "$1" in
|
||
|
preinit)
|
||
|
status_led_blink_preinit
|
||
|
;;
|
||
|
failsafe)
|
||
|
status_led_blink_failsafe
|
||
|
;;
|
||
|
preinit_regular)
|
||
|
status_led_blink_preinit_regular
|
||
|
;;
|
||
|
done)
|
||
|
status_led_on
|
||
|
;;
|
||
|
esac
|
||
|
}
|